• Hey Guest! Ever feel like entering a Game Jam, but the time limit is always too much pressure? We get it... You lead a hectic life and dedicating 3 whole days to make a game just doesn't work for you! So, why not enter the GMC SLOW JAM? Take your time! Kick back and make your game over 4 months! Interested? Then just click here!

Shop System P2(UNSolved)

W

WolfYouTube

Guest
I need help. I need GML for a damage thing so when you buy weapons you get damage and change the sprite to a different one.


Thanks,
The Best Noob On This Website
 

Fredrik

Member
Well it depends what you've already got. Have you made sthe shop system already? or what is it that you need help with. If you only need help to change the damage and weapon sprite, you'll just change a variabel. The sprite can be changed with sprite_index; or if you use one sprite for all the weapons where each subimage is a weapon you'll just change image_index;
 
W

WolfYouTube

Guest
Well it depends what you've already got. Have you made sthe shop system already? or what is it that you need help with. If you only need help to change the damage and weapon sprite, you'll just change a variabel. The sprite can be changed with sprite_index; or if you use one sprite for all the weapons where each subimage is a weapon you'll just change image_index;
How do I do damage?
 

Fredrik

Member
It's no spesific way to do it, it's no function or something like that to add health and damage.
In Create Event of a object you'll have to preset a variable like var_health = 100; etc. then when taking damange var_health -= xxx;
 
Top