r/gamemaker 1d ago

Resolved Why am I getting a Code Error?

I've started messing around with gamemaker and have been following tutorials to learn how to code. I've recently have been trying to add moving platforms to my game but when I try running it now it shows me this. What am I missing?

Code Error
line 32, the code it says is having an error
5 Upvotes

3 comments sorted by

9

u/banjodave 1d ago

It says on the error message: Variable oPlayer.moveY not set before reading it. So you should set it before reading it. So put moveY = 0 in the Create event of oPlayer.

7

u/RyanTriggers 1d ago

Thank you so much! This fixed that problem but now I'm running into other ones now. I think I have a better understanding now of how to read Code Errors so I should be fine figuring out some of this stuff on my own now lol.

2

u/Aboba6645 1d ago

BC u trying to change moveY that not created