Know which state Mario is in?

Description: Internal scripting system of SMBX-38A Engine based on the simple VB-like language
Moderators: Lx Xzit, Yoshi021, 5438A38A, Semi-moderatos, Moderators

9th_core
Topic author, Honourable citizen
Honourable citizen
9th_core
Topic author, Honourable citizen
Honourable citizen
Reputation: 0
Posts: 36
Joined: 17 Aug 2016

Post #1by 9th_core » 6 Oct 2016, 18:40

What I mean by that is to know if Mario is Small Mario or Big Mario (or with power-ups). I want to make a little area where if you are big, you get just a mushroom but if you are small, you get a 1-up mushroom.
Thanks! :)

Yoshi021 M
Moderator
Moderator
Avatar
Yoshi021 M
Moderator
Moderator
Age: 22
Reputation: 170
Posts: 693
Joined: 15 Feb 2016
Location: Yoshi's Island

Post #2by Yoshi021 » 7 Oct 2016, 0:44

You can use TeaScript
Char(id).Status = Stands for the current state of the player
You might need something like this...

Code: Select all

select case Char(1).Status
case 1
    call Tcreate("1-up",0)
case else
    call Tcreate("Mushroom",0)
end select

I made a test level for you if you want to see how it works ;-)
Attachments
a.lvl
(51.35 KiB) Downloaded 217 times
Links
ImageImageImage
Image
Image
"Going to University is FUN!" :pardon:

9th_core
Topic author, Honourable citizen
Honourable citizen
9th_core
Topic author, Honourable citizen
Honourable citizen
Reputation: 0
Posts: 36
Joined: 17 Aug 2016

Post #3by 9th_core » 7 Oct 2016, 8:06

Yoshi021 wrote:You can use TeaScript
Char(id).Status = Stands for the current state of the player
You might need something like this...

Code: Select all

select case Char(1).Status
case 1
    call Tcreate("1-up",0)
case else
    call Tcreate("Mushroom",0)
end select

I made a test level for you if you want to see how it works ;-)

Thanks for helping me!


Return to “TeaScript”

Who is online (over the past 5 minutes)

Users browsing this forum: 1 guest