Sprite Hud Example By: Gate [W]
This example is for that people who doesn't know how to make HUD's with sprites

This How-to Includes
-Coin Counter
-Lives counter
-Score counter
-Real time counter
-Real date counter

It took 10 minutes to do it!
Target Applications: GM7

Update History
No History
 
[O] Created: Jul 20 2008, 3:47 PM
[O] Updated: Never
[O] File Size: 1.19MB
[O] Views: 12992
[O] Downloads: 2455
[O] Favorites: 0
View / Download

Comments
No Icon
Torkirby
Jul 20 2008, 8:39 PM
Cool, it's pretty useful! Though I don't really know why you would need the real time and real date counters. I might use this in my game! 10/10
 
No Icon
techmario
Aug 8 2008, 11:09 PM
I actually get it now! Thank you soooooooooo much, this helped me figure out for statments, and script arguments.
 
No Icon
RetroX
Aug 11 2008, 2:29 AM
Very nice, although far too complex. You could get the place values of numbers like this:
real(string_char_at(var,position));
Really good, though.
 
No Icon
Genogenesis7
Dec 15 2008, 3:13 PM
Very useful! I used it in Warioland Engine: Extended as the jewel counter.

@Torkirby: You could program a day and night system, in real time!
 
No Icon
Shy Guy 99
May 5 2009, 11:03 PM
Really usefull!,... but I still donīt know how to move it with the view.
 
No Icon
Whoa!
May 18 2009, 12:05 AM
Quote (Shy Guy 99 on May 5 2009, 11:03 PM)
Really usefull!,... but I still donīt know how to move it with the view.

Use view_xview and view_yview. You can also add
a number to place it at a certain place in the
view. (Example: view_xview+30, view_yview+25)
 
User Icon
L a m e r o i d 
Jul 16 2010, 3:47 AM
cool) but can you tell me, how to made hud object no reseting when restart room or go to this room.
 
No Icon
MetalShadowOverlord
Jul 25 2010, 1:36 AM
I can't seem to figure out how to get it so I get a extra life after 100 coins. I tried to get it to work, but the coin counter kept malfunctioning every time.
 
No Icon
Goomba64
Jul 31 2010, 3:48 AM
ERROR in
action number 1
of Collision Event with object obj_box
for object obj_coins:

Error in code at line 1:
coins+= 1
^
at position 1: Unknown variable coins
 
User Icon
Gate
Aug 17 2010, 6:06 AM
Quote (Goomba64 on Jul 31 2010, 5:48 AM)
ERROR in
action number 1
of Collision Event with object obj_box
for object obj_coins:

Error in code at line 1:
coins+= 1
^
at position 1: Unknown variable coins

I recommend you to use a global variable to do that.
 
User Icon
MarioBros 101
Mar 29 2011, 3:38 AM
Is there a way to change the spacing between the numbers? EDIT: Nevermind, I got it. I changed the value of "myx". And one more thing I can't solve: Why is it that with the coins value, it displays more than two zeros? And I want the coins and lives count to display two digits(e.g. 1 life = 01 showed, 9 coins = 09 showed)
 
No Icon
Double Agent Luigifan
Mar 21 2012, 8:36 PM
I have a problem.
When i die in my platforming game i added it to,
i died, yes, i made a dead object that decreases the life, but it NEVER goes down!
Please help.
 
User Icon
Gate
Apr 7 2012, 10:44 AM
Quote (luigifan64 on Mar 21 2012, 10:36 PM)
I have a problem.
When i die in my platforming game i added it to,
i died, yes, i made a dead object that decreases the life, but it NEVER goes down!
Please help.

You have to set the variable that handles the current lives you have.
 
Pages: (1) 1 | Last Unread