Discord
Login
Community
DARK THEME

Change map/level in Quick Engine

Hi there, I'm enjoying Microstudio a lot and trying to make a simple platformer demo using Quick Engine.

So far, I haven't been able to make the player "progress" to the next level, I just can't find the way to change the map! Am I missing something obvious?

Thank you

If you are using Quick engine by @Gilles then you would in your loop put something like this

if nextLevel == true then
  map = 0
  map = Quick.addMap("map",x,y,width,height)
end

Just to be clear the 0 resets the maps value and the Quick.addMap reports the map as a the new Level/map. after that if you need you can also reset the x and y to the maps starting pos.

Thanks for the reply, yes that's what I did in the end, kinda:

Quick.maps = []
Quick.objects = []

and then creating the new map and the player sprite again

Post a reply

Progress

Status

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