Sliding block (Collide)

AugustRainAugustRain Member Posts: 3
edited July 2012 in Working with GS (Mac)
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.

Comments

  • rhinokeyrhinokey Member Posts: 158
    is 0 restitution ( in my gs this is called bounce) set on all objects involved, even if your box is 0, and the object it hits is 1, it will make the object bounce.

    also, when you constrain an object to another it seems to its collision abilities.
    you may have to find another work around.
  • AugustRainAugustRain Member Posts: 3
    @rhinokey : I set restitution is minus 1 ..thx for your support but i want like the video of uptimistik at below
    @uptimistik: Yes i want like that,but how to? This is demo GS ,it's not full.. Thx for your help.
  • AugustRainAugustRain Member Posts: 3
    @uptimistik : i already find the file download at there.. thank for your help too much.. i am looking that hope it oki :D
Sign In or Register to comment.