Need help with invert movement
hi,
i'm trying to create a small special power up in my game to . i have two actors:
PLATFORM:
-touch is pressed
self.position.x TO game.mouse.position.x
-touch is pressed AND game.invert IS true
self.position.x TO -(game.mouse.position.x)
POWER UP:
when collide with platform -> change attribute game.invert TO true
i want when the platform collide with the power up, that invert the movement ( if i drag left, the platform must go to the right!)
what is the problem?
i'm trying to create a small special power up in my game to . i have two actors:
PLATFORM:
-touch is pressed
self.position.x TO game.mouse.position.x
-touch is pressed AND game.invert IS true
self.position.x TO -(game.mouse.position.x)
POWER UP:
when collide with platform -> change attribute game.invert TO true
i want when the platform collide with the power up, that invert the movement ( if i drag left, the platform must go to the right!)
what is the problem?
Comments
any idea on how to do that?
it isn't impossible go to the white actor and change it to +480 isnstead of +240. Im sure it works now!
Here is the link if you want it right away:
https://dl.dropbox.com/u/3282996/invert.zip