This site requires JavaScript, please enable it in your browser!
Greenfoot back
BlazeGFX
BlazeGFX wrote ...

2013/9/27

How to solidify an object?

BlazeGFX BlazeGFX

2013/9/27

#
In need of help!
BlazeGFX BlazeGFX

2013/9/27

#
We are creating a program much like doodle jump, in that a player has to jump from different blocks to get to the end. We can't seem to make the blocks able to support the player. How would we make it so that the player hits the block and is carried along it (the blocks move side to side and up and down). Is there a way to do this? Also if you could help us make it so the player could pass through the bottom of the block that would be great, but is not necessary.
danpost danpost

2013/9/28

#
See the documentation of the Actor class. It contains several collision detection methods as well as a couple ways to change the location of actors. You would ask 'if the player is moving downward and intersects a platform, adjust the vertical location of the player to stand on the platform'. Have the platform check for a player in such a position (and not moving upward) to move the player with the platform.
You need to login to post a reply.