r/CodingForBeginners • u/Elder_Rusty • Jun 14 '26
I am drowning in SPAGHETTI, please help! (GML)
I just wanted to make a double jump.
That's all I wanted to do.
but then it wouldn't jump at all, so I messed with it.
The good news? i now have multiple jumps!
bad news? I can't figure out how to cap the jumps
i'm scared to touch my code right now, i "understand it" and worse yet, it's "working", but it doesn't work as i intend it to.
What i've attempted thus far is to set a jumpmax, and I've sent up a variety of different things going "IF JUMPCOUNT = JUMPMAX, STOP LETTING ME JUMP YOU DINGDONG"
//not that the machine spirit responds well to being called a dingdong
it used to have an issue of like, doing 1 really, really long jump, and then a bunch of tiny jumps. but, not it doesn't do that anymore, thankfully.
I really thought the whole 'jump count' and 'jump max' thing would be more simple than this, honestly. but man, the engine just straight up doesn't like what i'm doing.
So, I'm calling in the cavalry, it's up to you all now! how do i fix this total mess?







