You mean like in a platformer?
Well if you do, once the object collides with the platform, set a timer for 1 sec or something similar if it is jumping upwards and then change a variable to something that causes gravity to come into play and the object to become solid. If it is falling, just have that already turned on.
This was probably rather ill-formed because I don't know what you mean exactly, but it should work in theory if you know how to do gravity.
Offline
astroLoger wrote:
You mean like in a platformer?
Well if you do, once the object collides with the platform, set a timer for 1 sec or something similar if it is jumping upwards and then change a variable to something that causes gravity to come into play and the object to become solid. If it is falling, just have that already turned on.
This was probably rather ill-formed because I don't know what you mean exactly, but it should work in theory if you know how to do gravity.
Yes I am talking about making a sprite land on a set platform in the air, the only problem with your theory is that I don't want the variable showing all the time. Does that even make any sense? :-)
Offline
Hammerton wrote:
astroLoger wrote:
You mean like in a platformer?
Well if you do, once the object collides with the platform, set a timer for 1 sec or something similar if it is jumping upwards and then change a variable to something that causes gravity to come into play and the object to become solid. If it is falling, just have that already turned on.
This was probably rather ill-formed because I don't know what you mean exactly, but it should work in theory if you know how to do gravity.Yes I am talking about making a sprite land on a set platform in the air, the only problem with your theory is that I don't want the variable showing all the time. Does that even make any sense? :-)
Sure, if you mean like the number in the right corner next to the variable, click the box next to the variable in the Variables and then you won't see it in the game. That is what I do.
Offline