Questions tagged as 'unity2d'

1
answer

My object falls into a vacuum instead of using Lerp

I'm doing a runner-style game that is not generated randomly and I'm trying to program the Boss to come on stage and start the final fight. The game consists of an astronaut (player) who always stays on the screen (so, the background and the cam...
asked by 29.10.2018 / 09:58
1
answer

Unity- 2D platforms, jump with OnCollisionEnter

I try to make a basic game in Unity for the first time, a 2D platform. When I want to jump I'm not able to just jump when it hits the ground, it always jumps even though it's not on the platforms, which have the Layer Ground. This is the scrip...
asked by 19.10.2018 / 18:04
0
answers

(Unity) Randomly generated platforms collide with me

In unity, I have an infinite platform generator that generates platforms while the character ascends in the Y axis , the problem is that there are times when platforms are generated On top of other platforms and they overlap, I would like to...
asked by 17.10.2018 / 22:16
0
answers

problem in Unity, this code freezes the play mode after the first moved piece, how could it be fixed?

IEnumerator ClearAndRefillBoardRoutine(List<GamePiece> gamePieces){ m_playerInputEnabled = false; List<GamePiece> matches = gamePieces; do { yield return StartCoroutine(ClearAndCollapseRoutine(matches)); y...
asked by 09.10.2018 / 18:12
1
answer

Unity point marker

I am creating my first project in Unity, a prototype of a video game using C #. It's almost ready but I only need the points marker. At the moment I have done this: using System.Collections; using System.Collections.Generic; using UnityEngine;...
asked by 15.09.2018 / 18:42
1
answer

Is there any way in which you can trigger functions of an object when detected with a Raycast2d in Unity?

I'm trying to operate a function of an object by detecting by raycast, that is, I press the mouse on the screen, create a Raycast2D and detect if it collides with a 2D object, and if that happens, trigger a function inside that object, for examp...
asked by 04.08.2018 / 03:06
1
answer

how to make two ImageTarget read me the spirte that I have selected

I have the following situation, I am using two identical images, what of different color to read it AR of Vuforia . When creating the database, I defined each one with a pattern, in this case it would be a purple one and the second one pink. Ad...
asked by 29.01.2018 / 21:13
1
answer

Unity - Move object using the accelerometer on device

I have a problem since I am new to unity, what I want is that when the object reaches a certain position on the x axis it stops, for example when it reaches 2 or -2 it stops at that point. In the code that I propose when it reaches that position...
asked by 11.01.2018 / 19:28
0
answers

Problem with Unity 5.5.0p3 and Xcode

I'm making a game with 'Unity version: 5.5.0p3 (64 bit)' for iOS platform, I build it and open it with 'Xcode version: 8.2.1 (8C1002)' of the Warnings does not appear, but when running in a device appear 329 Warnings (many Warnings are repeated)...
asked by 28.12.2016 / 12:58
1
answer

Objects that move in Unity? [closed]

I would like to make a square that moves in Unity, but I do not know how to do it, I search and I can not find it, could you explain how?     
asked by 28.10.2018 / 18:43