E
Ember
Guest
Hi everyone,
I'm currently developing a RPG and I've created save and inventory icons that I have placed using the draw_sprite function.
This works nicely and the icons appear where I want and they are in a fixed position so that when the camera moves, they stay where the are.
But now, I'm a little bit confused as to how I would interact with these icons. I'm not asking for the exact code, just a nudge in the right direction.
I am pretty new to GML but I have the basics down and I've managed quite nicely so far but this has really stumped me.
Perhaps I'm looking too much into it but all I need is to have the sprites perform an action when clicked, if they were objects, I could do this quite easily but since they are sprites, I am stumped.
Here is what I've done in the object of the player using a Draw GUI event:
//save
draw_sprite(spr_save, 0, 930, 10)
//inventory
draw_sprite(spr_inventory, 0, 870, 10)
I'm currently developing a RPG and I've created save and inventory icons that I have placed using the draw_sprite function.
This works nicely and the icons appear where I want and they are in a fixed position so that when the camera moves, they stay where the are.
But now, I'm a little bit confused as to how I would interact with these icons. I'm not asking for the exact code, just a nudge in the right direction.
I am pretty new to GML but I have the basics down and I've managed quite nicely so far but this has really stumped me.
Perhaps I'm looking too much into it but all I need is to have the sprites perform an action when clicked, if they were objects, I could do this quite easily but since they are sprites, I am stumped.
Here is what I've done in the object of the player using a Draw GUI event:
//save
draw_sprite(spr_save, 0, 930, 10)
//inventory
draw_sprite(spr_inventory, 0, 870, 10)