Sliding block (Collide)
![AugustRain](http://forums.gamesalad.com/applications/dashboard/design/images/defaulticon.png)
Hi all!
I want to make a game like this : http://www.novelgames.com/flashgames/game.php?id=121 but i don't know how to make the block don't bounce when collide and don't go through other block . Because i use "touch" to make this game.
This is my script :
Actor yellow block
collide actor with tag block
Group :
When touch press
do
constrain self.position.x = game.touches.touch 1x.
constrain self.position.y = game.touches.touch 1y.
Then i set Physics\density = 0 , restitution =-1,friction =3, but them always bounce and go though other yellow block. Please help me how to make them dont go though . Thanks all too much.
I want to make a game like this : http://www.novelgames.com/flashgames/game.php?id=121 but i don't know how to make the block don't bounce when collide and don't go through other block . Because i use "touch" to make this game.
This is my script :
Actor yellow block
collide actor with tag block
Group :
When touch press
do
constrain self.position.x = game.touches.touch 1x.
constrain self.position.y = game.touches.touch 1y.
Then i set Physics\density = 0 , restitution =-1,friction =3, but them always bounce and go though other yellow block. Please help me how to make them dont go though . Thanks all too much.
Comments
also, when you constrain an object to another it seems to its collision abilities.
you may have to find another work around.
@uptimistik: Yes i want like that,but how to? This is demo GS ,it's not full.. Thx for your help.