#How do I make a Mario life system on 4X

1 messages · Page 1 of 1 (latest)

dense pike
#

I saw someone saying the same question but on 3X and global variables don’t exist on 4X so the title says it all

marsh summit
#

Wdym?

#

Uhh

#

Oh u mean a system where you have 6 lives and dying lowers it by one?

#

Create a variable. I'll call it "lives" in my example. Create a map. And do "when map is created" then use a set player attribute and set it to "(set((player)lives) (=) (starting amount))" and then add onto the character you play as a when health=0 then put in "(set((player)lives) (-) (1))" and for power ups that give more do "(set((player)lives) (+) (amount))" and bam!

dense pike
warm oak
dense pike
warm oak
#

Weird

#

It should have worked normally