|
-
gabrieljamh
- Good citizen
 -
-
gabrieljamh
- Good citizen
 - Age: 23
- Reputation: 3
- Posts: 30
- Joined: 10 Mar 2016
Post #2by gabrieljamh » 17 Mar 2016, 1:15
TanookiMan wrote:Anyone know how to put de level name in the top of the screen with scripts ?
HI, I can't really tell if there's a script that add text in HUD without repleacing the original HUD Script, so you can try use the CustomHUD method (from Script Examples) and Repleace the "Custom Text" value by your level name (like me did) you can get the attached file or follow the guide of what I saw that changed in scrcipts - Changes
- 1st change - Script
- it was added a Script with the name "IntiHUD" that removes original HUD and repleaces using a new Script
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,38,81,20,20,0,-1) 'variables call hudset("text:&sys(coincount)",2,65,22,48,57,1,213,-1,-1) call hudset("text:&val(a)",3,65,54,48,57,1,213,-1,-1) call hudset("text:&sys(playerhealth)",4,65,84,48,57,1,213,-1,-1) call hudset("text:Custom Text",10,600,25,32,128,16,89,-1,-1) 'player's item Call hudset("bitmap",5,38,0,56,56,372,16,0,-1) Call hudset("bitmap",6,0,0,100,100,384,28,5001,-1) 'star coin call hudset("bitmap",7,38,56,24,24,20,106,6000,-1) call hudset("bitmap",8,38,56,24,24,50,106,6001,-1) call hudset("bitmap",9,38,56,24,24,80,106,6002,-1)
- 2nd Change - Add Event
- the Add Event is used to show how much Dragon Coins(SMW) you have, it requires you to put Add event in all Dragon Coins
1- Add in Variables a variable called "a" with value "0"
2- Go to Event>Add(Event)>Variables and add the mathematical expression to a variable
val(a)+1
3- In all Dragon Coins (if used), go to Advanced>Events-I and add to "Death" the "Add" Event
- 3rd - some sprites for Custom HUD
- in the level folder, there are some pictures of the custom HUD called:
npc-89.png (text sprite with txt file) npc-213.png (numbers sprite with txt file) scflash.png (HUD pictures sprite)
*Don't forget to give Star Coin IDN in Advanced for Star Coins (NSMB)
I hope this helps
-
Attachments
-
- Custom HUD Script Example.rar
- CustomHUD from Script Examples
- (24.9 KiB) Downloaded 277 times
-----BomberMan Land Online Team & BomberCraft BR admin  ----- *Projects WIP: Minecraft serie (unnamed) SMBX's 1.4.2 world - unnamed gabrieljamh adventure Skyrim serie (unnamed) *Projects stopped: PMD - Protectors of Time (fanmade PMD history/game) *working in: Model/video making (MMD) 
| |