it won't open, says that the file is created in a newer version of construct 3
Try using the last beta version, I forgot that I was running it.
editor.construct.net/r194
Ooh, they have to be on a different event sheet?
I've splitted it in another event sheet to trigger the "on start of layout" only on the layout 2, this was not the main issue..
You created the global variable class as number and was comparing it as string
You was not setting the global variable as warrior or mage after select the WarriorIcon or MageIcon, so after change the layout it was always comparing the global variable and was always = 0
Develop games in your browser. Powerful, performant & highly capable.
I have tested this on my game now, it is working perfect.
It is now choosing the right class.
Now the camera isn't following it lol
I put a "Scroll To" behavior" on my camera sprite
and set camera position to
lerp(self.X, WarriorPlayer.X, 0.03)
lerp(self.Y, WarriorPlayer.Y, 0.03)
and its not following the Warrior sprite.
I put a "Scroll To" behavior" on my camera sprite and set camera position to lerp(self.X, WarriorPlayer.X, 0.03) lerp(self.Y, WarriorPlayer.Y, 0.03) and its not following the Warrior sprite.
Are you using "on every tick" for camera position?
Yes, i am using "on every tick" for camera position.
It should just work.. make sure that you dont have other instances of the WarriorPlayer, run it on debug
its still not working. I checked, there is no other instances running the warrior player.
It is following,
for example, if i press "S" to go down, the screen moves (camera), but its not going along with the warrior player.
Thank you very much for your help on the choose the class :)