Discord
Login
Community
DARK THEME

expression expected

I constantly get the message expression expected, but whatever i do to fix it it does not help. also does my game screen keep turning black. how do i fix this?

the piece of code is this:

if player.lives =>0 then mode == "play" end if player.lives <= then mode == "lose" end end

Without code, we are unable to properly help you. Please post the code for this, and future questions about your code.

if player.lives =>0 then 
   mode = "play" 
end 

if player.lives <= 0 then 
   mode == "lose" 
end 

It should be >= instead of => for greater than or equal to.

Post a reply

Progress

Status

Preview
Cancel
Post
Validate your e-mail address to participate in the community