[Solved] Help. How to keep actors in place?

oscarkim

  • Posts: 28
I am making a sliding puzzle game but whenever the user slides a piece.....it sometimes bounces back. I am using push -actor. I have attached a short video clip of the problem.

« Last Edit: May 15, 2017, 01:08:26 am by oscarkim »

oscarkim

  • Posts: 28
....and just to add. .. The actors are set to normal and friction @=0, no gravity and bounce @=0.

KramerGames

  • Posts: 405
For this game you don't need collision shapes. Also I would use the "slide actor by x and y over x seconds" block under actors-->tweening-->slide. That way you can precisely choose to how many pixels it is moved.
Parasites United  (Idle Parasite Game)

oscarkim

  • Posts: 28
Thanks....but I was avoiding that method because I am not so good with tweening XD.....also I have a player that needs the collisions for going through the maze.

oscarkim

  • Posts: 28
I have made it work.   Switched to simple physics( though this may not matter....might just be placebo XD ') )..... instead of using push actor, I used x speed and set conditions to remove unneeded X and Y speed depending on which side the actor has collided. It now works silky smooth

oscarkim

  • Posts: 28
This was actually a nightmare to do with unity.....could not get swipe to work with a specific actor. Stencyl is amazing.... I think I'll complete and publish the game with it XD