Stats that kill you?

Yes, it’s quite possible. This is the creation of a *gosub
You might modify the code to look like this:

*label checkHP
*if myHP <= 0
 *goto_scene death
*return

You can go to this code by doing a *gosub
Specifically:

*gosub checkHP

You can name the piece of code whatever you want, but you have to then be consistent with the naming.
In other words, if you had *label helloworld then you would have to *gosub helloworld.
The *return command is important because it tells a *gosub when to go back to where it was.

1 Like