I'm making a game and i can do the platforms so the character doesn't go down through them but i don't know how to make the platforms solid so my character can't go up through them??? Please Help!?<turn cw( )degrees><turn cw( )degrees>
Offline
sorry i didn't mean to put those things :L I meant how can i make my charcter so it can't go up through the platforms?
Offline
crystalhammer wrote:
sorry i didn't mean to put those things :L I meant how can i make my charcter so it can't go up through the platforms?
To do that, you'll need to make the bottom of the platform different colour from the top of the platform. I'm presuming that you're using y velocity, so you'll need to put:
When green flag clicked
Forever
If Touching colour [colour of bottom of platform]
Set "y velocity" to ("y velocity" * -1)
End if
End forever
If you'd like, I can make it using actual blocks and link you to it
Oh, and if you're using a method other than the y velocity one, then I'd recommend looking at the project in my earlier post, to see how to use that method
Offline
You could make a list, say if there was a box which you didn't want the player to go into, the box has 4 points so that's 4 objects on the list, add the 4 points (X and Y so it can be read and used quickly) into the list and then make a code which gets the numbers and asks itself whether or not it's inside them.
I'll try make a project to show you.
Offline