Discord
Login
Community
DARK THEME

Next Level function problems

I used a code from @Loginus to change the level for my platform game https://microstudio.dev/i/warrior/lipesadventure/ and i maked three level and when e arrive in the final of the second phase, the code just back to the first phase, i don't really now what really is happenning, PLIS HELP ME

main >> update >>

......
  if mode == "go_to_next_level" then
    currentLevel = ( currentLevel + 1 ) % 4
    if currentLevel == 0 then currentLevel += 1 end
    createLevel( currentLevel )
  end
......

Post a reply

Progress

Status

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