Making a health bar in 38A

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

Topic author, Passerby
Topic author, Passerby
Reputation: 0
Posts: 4
Joined: 6 Feb 2017

Post #1by Hackplayer7 » 22 Oct 2017, 2:08

I wish to make a Sonic health bar script for my 38A, unfortunately I know nothing in Teascript. Could anyone guide me?

What I want to do is something like this:
There would be a number variable in the top of the screen.
It would increase by 1 every time you collect NPC-152 (Ring) and go back to 0 if the player got hit.
If the player got hit while it showed 0, then it would trigger a death script.

I don't know if I'm doing it right, but it should look like something like this:

name variable: rings

if NPC-152 collected: increase by 1
if Player Hit: decrease to 0 (subtract the variable by itself)
if Player Hit and variable ''rings'' =0: Trigger death

Return to “TeaScript”

Who is online (over the past 5 minutes)

Users browsing this forum: 1 guest