bump(atom/a, d)
if(istype(a, /obj/spring) && d == DOWN)
if(a.icon_state=="down")
vel_y = 14
a.icon_state="up"
a.pheight=52
sleep(10)
a.pheight=32
a.icon_state="down"
return
if(istype(a, /mob/enemy/SimpleWalker) && d == DOWN)
vel_y = 6
a:die()
return
..()
ID:892073
Jul 26 2012, 6:58 pm
|
|
When I run the Mario demo, jumping on the goombas is a seamless process, but when I replicate the same thing in my own game with an enemy AND an object it pauses for about a second before continuing with the process.
|
In response to Bravo1
|
|
Bravo1 wrote:
sleep(10) Lol, no I already checked that. It pauses on the If line. and for both of them. EDIT: Nevermind, that was completely the issue.. LOL |
Yep, it pauses for a second. Seems legit.