[solved] A question

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

Coolio__ M
Topic author, Marquis
Marquis
Avatar
Coolio__ M
Topic author, Marquis
Marquis
Age: 17
Reputation: 13
Posts: 167
Joined: 15 May 2016
Location: Somewhere safe in 'Murica

Post #1by Coolio__ » 13 Sep 2017, 23:09

Simply put, I wanted to know how I would be able to make something in a custom HUD change when a character is being played as, similar to what Catskart did with his SMB3 HUD.
The HUD itself
scflash.png
scflash.png (4.86 KiB) Viewed 56 times
The code

Code: Select all

'initialize,0,0,0,0,0,0,0,0,0
call hudset("initialize",0,0,0,0,0,0,0,0,0)
'!!!!!!!!!!bitmap source = "scflash.png"!!!!!!!!!!
'bitmap,id,sourcex,sourcey,width,height,destx,desty,advset,-1
'text:text,id,destx,desty,startasc,endasc,lnum,npcid,-1,-1
call hudset("bitmap",1,0,0,720,130,20,20,0,-1)
call hudset("text:&sys(coincount)",2,66,112,48,57,1,213,-1,-1)
call hudset("text:&sys(playerhealth)",4,95,35,48,57,1,213,-1,-1)
call hudset("text:&sys(score)",3,600,35,48,57,1,213,-1,-1)
call hudset("text:&sys(lvltimer)",17,725,35,48,57,1,213,-1,-1)
Call hudset("bitmap",6,0,0,100,100,384,28,5001,-1)
call hudset("bitmap",7,768,0,31,31,35,69,6000,-1)
call hudset("bitmap",8,768,0,31,31,68,69,6001,-1)
call hudset("bitmap",9,768,0,31,31,101,69,6002,-1)
call hudset("text:&sys(starcount)",5,315,40,48,57,1,213,-1,-1)
And finally, what I want to add is some code that will change the portrait from Mario to Luigi if the player is playing as Luigi.
da portrait for weegee
2.png
2.png (4.84 KiB) Viewed 56 times
If you can help me, thanks a lot!
Last edited by Coolio__ on 15 Sep 2017, 18:26, edited 1 time in total.
"In SMB3, you could get the frog suit. In Super Mario Odyssey, you can be the frog."
~Previously known as DaveDaCat101~
Image
Image
What I support
Image
Image
Image
Image
If you guys are wondering why I'm not announcing Adventures in 2DU in the Projects subform, it's because of a bug and I want to have the demo ready when I announce it.

Yoshi021 M
Moderator
Moderator
Avatar
Yoshi021 M
Moderator
Moderator
Age: 17
Reputation: 75
Posts: 622
Joined: 15 Feb 2016
Location: Yoshi's Island

Post #2by Yoshi021 » 15 Sep 2017, 5:14

Code: Select all

if char(1).id = 0 then
    'code for Mario's logo
elseif char(1).id = 1 then
    'code for Luigi's code
end if
Links
ImageImageImage
Image
Image
"Going to University is FUN!" :pardon:


Return to “TeaScript”

Who is online (over the past 5 minutes)

Users browsing this forum: 1 guest