I am currently trying to create an inventory system.
I have an inventory image that is in a group that contains a 'on key press' option to pull up the image.
I have a crown item, and when the player sprite collides with it, 1 is added to a global variable called 'Crown'.
I am trying to make it so when you collide with the crown item and 1 is added to the Global Variable 'Crown', the crown will appear in the inventory image, I have been trying to make this work but I can't seem to make any 'if' statements that seem to work. Using the 'Compare' values doesn't seem to work for me either. If anyone can point me to a tutorial or page that can explain this sort of problem I would appreciate it. I have never really worked with code before, so I am unsure on some processes.
Sorry for the strange layout of the message, I am tired!
Peace!
<img src="http://ofhell.com/code1.png">
<img src="http://ofhell.com/code2.png">