Log In  

could someone help me figure out what did wrong?

the error happens in this line:
if self.xspeed>self.topspeed then
self.xspeed-=self.xaccel
end
thanks in advance :D

P#78150 2020-06-16 16:07 ( Edited 2020-06-16 17:10)

You declare "xtopspeed" but not "topspeed" is my guess :)

P#78151 2020-06-16 16:21

oof, i didn't notice, thanks :)

P#78154 2020-06-16 17:10

[Please log in to post a comment]

Follow Lexaloffle:          
Generated 2024-04-20 07:28:15 | 0.006s | Q:14