ID:270381
 
my gravity system dont work i press up but it only goes up and stays there can someone give me the gravity system that works i want it that u press up and it jumps up and comes back down plz.
This has been posted countless of times, and I'm sure there are many libaries about it.

Atleast TRY and search.
In response to DivineO'peanut
there isnt i have looked and know grav systems
In response to Alien link
You know how to get a mob up... but not down.. Though it goes about the same way.. Why am I starting to think you copy/pasted whatever you have already in the first place? :/
In response to Mysame
no i carnt get up or down it says

runtime error: Cannot read null.density
proc name: Gravity (/mob/proc/Gravity)
source file: Gravity.dm,26
usr: Alien link (/mob)
src: Alien link (/mob)
call stack:
Alien link (/mob): Gravity()
Alien link (/mob): Login()


and then i can only go left adn right not up or down
In response to Mysame
Or, his existing system could be faulty. <_<
Of course, even then, he might've posted his code.

Anyway, kid who wants the help, people usually don't just make systems of this importance in something other than a demo or library largely available. One reason is because it's a bit harder to search the forum than the hub for demos and libraries.

Anyway, Kunark has made a good gravity system. It's a bit bloated, but should work at any rate. It's in one of his older works. There is a like a pack of his game's source somewhere, I beleive on the hub.

I haven't really looked at this one, but it works.
http://developer.byond.com/hub/GrimKid429/SimpleSideScroller

See if that helps.

In response to CaptFalcon33035
ty ill try it out see if it works
In response to Alien link
ty so much the grav system works