Im making an rpg style exploration game with a birds eye view, the background is just color, and the actual map is a sprite, if the 'hero' the players control touches it, it dissapears under it, I need to find a way to make the hero rebound away from the wall, can anybody help me???
Offline
Assuming that your map sprite has gaps for the floor or whatever you could do:
If touching mapsprite
point in direction 180 - current direction (or maybe the other way around)
move 10 steps
end
And that might work.
Offline
Thanks, it works perfectly when I touch the left side, but quickly slides under the right side.
Offline
If it's on the left side, change x by -10. Create color sensors on the map to tell what is left and whatis right.
Offline
Thanks again!
Offline
hmm I didn't really Read anything.... Sorry but if it's the edge of the screen your talking about then add in the "If on edge bounce" script but if its an RPG and your falling through something on the side??? I don't think I can help you with that
Offline
My game has the same problem, but I have a script that fixed it... download it if you need to.
Offline