toggle menu
Categories
Discussions
Dashboard
Sign In
·
Register
Sign In
·
Register
Categories
Discussions
Dashboard
Sign In
·
Register
×
Home
›
GameSalad 101
›
Working with GS (Mac)
Platform problem
iDeveloperz
Member
Posts:
1,169
January 2010
edited November -1
in
Working with GS (Mac)
Hi guys I am trying to make a game like doodle jump. But you cant go from underneath the platforms as they bounce you back down. =/
Comments
firemaplegames
Member
Posts:
3,211
January 2010
Hey,
You need to keep track of the main player Actor's Y, and you have to add a Rule to the platform like this:
Create a global real game attribute called PlayerY
In the Player Actor, add a Constrain Attribute:
Constrain Attribute: game.PlayerY to self.Position.Y
In the Platform Actor, wrap a Collide Behavior with this Rule:
Rule
When game.PlayerY > (self.Position.Y + (self.Height / 2))
Collide with actors of type Player
Do NOT put a Collide behavior in the Player, and make sure the one in the platform is wrapped like that.
That should do the trick.
Hope this helps!
Joe
iDeveloperz
Member
Posts:
1,169
January 2010
Thanks joe
iDeveloperz
Member
Posts:
1,169
January 2010
Hi joe there s bit of a problem with the camera.
http://gamesalad.com/game/play/28690
iDeveloperz
Member
Posts:
1,169
January 2010
Doesn't matter. I forgot to unselect the moveable checkbox.
Sign In
or
Register
to comment.
Comments
You need to keep track of the main player Actor's Y, and you have to add a Rule to the platform like this:
Create a global real game attribute called PlayerY
In the Player Actor, add a Constrain Attribute:
Constrain Attribute: game.PlayerY to self.Position.Y
In the Platform Actor, wrap a Collide Behavior with this Rule:
Rule
When game.PlayerY > (self.Position.Y + (self.Height / 2))
Collide with actors of type Player
Do NOT put a Collide behavior in the Player, and make sure the one in the platform is wrapped like that.
That should do the trick.
Hope this helps!
Joe
http://gamesalad.com/game/play/28690