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