ID:162848
 
Does anyone know what the gravity proc is? Or can lead me to a place that tells you? cause im lost on that.
There is no gravity proc, but there are examples of ways to replicate gravity in games. Depends on what type of gravity you mean though: there's dbz gravity, normal gravity, and etc depending on what it does. Try searching the hub.
In response to Mecha Destroyer JD (#1)
i searched everything already. I need a gravity proc for a sidescrolling game
In response to Moocow696 (#2)
Moocow696 wrote:
i searched everything already. I need a gravity proc for a sidescrolling game


You could try making a jump function when you chop you could create a proc whitch is ran to make them come back down if they aren;t on solid gronf and the proc reconizes the tur as ground or midair. and such. It's simple theory, if you can make a jump then you could simply make a gravity, assuming you know all about the small pixel locate vars.
In response to MetaNeko (#3)
There is a gravity lib...
In response to MetaNeko (#3)
There is a gravity lib...
In response to MetaNeko (#3)
im afraid I don't. How would I make it so that the proc reconizes if im in midair or not? Could you give me an example please?
In response to Moocow696 (#6)
The condition to check if you are in mid-air is
var/turf/T = get_step(src,SOUTH)
if(!T.Enter(src))
//in mid-air
else
//not in mid-air
In response to Moocow696 (#6)
I already gave you a link to an example in the last thread where you begged for help with a side scroller, here it is yet again...

http://developer.byond.com/hub/GrimKid429/SimpleSideScroller

Try searching the forums before making two new threads about the same thing.
A quick search for "jumping and gravity" in the forums would've led you to this post: [link]