BOB_ROX Posted June 28, 2009 Report Share Posted June 28, 2009 I got a health sprite I wanna use so it shows the Health and Unleashed gauge on it. But I dont know how to code it, Like do I both have them empty?, Plus I was wondering if I use another sonic gameplay engine such as the revival unleashed engine would I be able to cut the lives code outta that and use it and will it work the same?, or do I have to do it a different way? Heres the sprite of the health bar I wanna use (Sorry if I didnt use Photobucket or anything but it was Waaaaaaaay too slow so I went on sendspace which was quicker) http://www.sendspace.com/file/2h7jas Link to comment Share on other sites More sharing options...
Realm0D Posted June 28, 2009 Report Share Posted June 28, 2009 I got a health sprite I wanna use so it shows the Health and Unleashed gauge on it. But I dont know how to code it, Like do I both have them empty?, Plus I was wondering if I use another sonic gameplay engine such as the revival unleashed engine would I be able to cut the lives code outta that and use it and will it work the same?, or do I have to do it a different way?Heres the sprite of the health bar I wanna use (Sorry if I didnt use Photobucket or anything but it was Waaaaaaaay too slow so I went on sendspace which was quicker) http://www.sendspace.com/file/2h7jas Do you know any GM coding AT ALL? Link to comment Share on other sites More sharing options...
BOB_ROX Posted June 28, 2009 Author Report Share Posted June 28, 2009 A bit, Still learning it. Link to comment Share on other sites More sharing options...
Realm0D Posted June 28, 2009 Report Share Posted June 28, 2009 A bit, Still learning it. lol, I think you might need to go to something a bit easier because most of the help topics on here are from you. in this forum. May i suggest MMF2? or TGF? Link to comment Share on other sites More sharing options...
Sslaxx Posted June 28, 2009 Report Share Posted June 28, 2009 A bit, Still learning it. If you haven't, I'd suggest checking up on the tutorials YoYoGames have available on their website. http://www.yoyogames.com/make/tutorials http://wiki.yoyogames.com/index.php/Main_Page might be useful for finding out answers. 1 Link to comment Share on other sites More sharing options...
Slow_Motion Posted June 28, 2009 Report Share Posted June 28, 2009 Use this engine off of the gamemaker forums, http://gmc.yoyogames.com/index.php?showtopic=377992 It has 2 types of health bar and a back sprite its REALLY simple to use. 1 Link to comment Share on other sites More sharing options...
BOB_ROX Posted June 29, 2009 Author Report Share Posted June 29, 2009 Yeah I originally went to yoyogames to find one but it only had 2 sprites with one green and one red and it changes with the directional buttons. which really didnt help at all. But yeah I'll try this one out and thank you for your help. Link to comment Share on other sites More sharing options...
BOB_ROX Posted June 29, 2009 Author Report Share Posted June 29, 2009 Sorry for double post but how do I get it to go on screen and follow the character? Coz im having alot of trouble with that. By the way Im using the example that Slow Motion gave me Link to comment Share on other sites More sharing options...
Slow_Motion Posted June 29, 2009 Report Share Posted June 29, 2009 Its simple! use this code, //For x use this: view_xview[0]+0 //For y use this: view_yview[0]+0,[/CODE]with the +0 you add your view example:[CODE] // draw_sprite(sprHUD, 0, view_xview+16, view_yview+9);[/CODE]its like draw_sprite or text (sprite,subimg,x,y)You dont need the [0] im not sure what its for. Link to comment Share on other sites More sharing options...
BOB_ROX Posted June 29, 2009 Author Report Share Posted June 29, 2009 Do i put that in my obj player or do i put that in my hud/health object? Nevermind i figured it out but except its in the draw event of the player (which had nothing except this) Now it drew over the player, being in the position i want but the player is gone. It still moves as if the player is there but the sprites of the player isnt. Link to comment Share on other sites More sharing options...
Spike Posted June 29, 2009 Report Share Posted June 29, 2009 Because you can't have a sprite and a draw event, just one or the other. Put it in your HUD object. If your HUD object also uses sprites, you'll have to make another object. Link to comment Share on other sites More sharing options...
BOB_ROX Posted June 29, 2009 Author Report Share Posted June 29, 2009 Thank you that helped, Umm but now I got the problem of getting the red bar in where the sprite is getting drawn on obj_HUD and Im having trouble with getting the rings to fill it up. or have it already filled up at the start. Link to comment Share on other sites More sharing options...
marvinvalentin Posted July 1, 2012 Report Share Posted July 1, 2012 hi i see your looking for information about werehog and i need that character for my game sonic generations fan game, can u send me a engine? Link to comment Share on other sites More sharing options...
Chaos-Fusion Posted July 2, 2012 Report Share Posted July 2, 2012 hi i see your looking for information about werehog and i need that character for my game sonic generations fan game, can u send me a engine? Bit of a necropost but I'll answer your concern instead of sending an engine. The Werehog plays like a brawler game so you're better off finding a brawler/combo engine instead and fitting it into your game. GMC should have heaps of them. Also, avoid asking for other peoples engine unless those engine are open source and available for others to use. No one would give their own hard work away to someone else to use as their own. Link to comment Share on other sites More sharing options...
Recommended Posts