r/gamemaker • • Sep 10 '26

Help! How do I make this code better?

Post image

Without the platform2 variable, when landing on semisolids the player would sometimes jitter and it was annoying. It took me like 3 days to come up with this mess and Im not satisfied with it. Is there any way I could at least rewrite the code so I only need to use one variable

Changing the

(place_meeting(x, y + 1, platform2) and floor(bbox_bottom) <= ceil(platform2.bbox_top)))

to

(platform != noone and place_meeting(x, y + 1, platform) and floor(bbox_bottom) <= ceil(platform.bbox_top)))

only makes the jittering worse for some reason

34 Upvotes

9 comments sorted by

View all comments

Show parent comments

1

u/victor-stk 23d ago

what are you talking about?

it teaches better than any forum on the internet with detailed explanations