how do i make my character able to go through platforms when it under them, and collide with them when it fall on top of them, like what happens in doodle jump
You need to do a rule in the platform and a few variables.
on your main character constrain a global variable game.characterY to self.position.y
then on your platform do a rule overlaps or collides with character and add another attribute: game.characterY < self.position.Y...change game.jumpThrough to True otherwise game.jumpThrough is false.
In you character code do a rule if game.jumpThrough is true change attribute self.Motion.Linear Velocity.Y to 500 (change 500 till your happy)
Comments
on your main character constrain a global variable game.characterY to self.position.y
then on your platform do a rule overlaps or collides with character and add another attribute: game.characterY < self.position.Y...change game.jumpThrough to True otherwise game.jumpThrough is false.
In you character code do a rule if game.jumpThrough is true change attribute self.Motion.Linear Velocity.Y to 500 (change 500 till your happy)
Hope you understand it...i think it should work.
Darren.