Hello there, I am new to the RPG Making community, I am trying to make an item that is a lantern and I am doing this through a common event at the moment (I dont know how else I can do this )
My problem is after turning it on once, after using the item again it doesnt remove the state, any ideas?
do you use YEP_ButtonCommonEvents plugin as well? if so, can you screen
your event? if not, than still a screenshot of the event.
Yes. Any time you use the item, if it's ON, it'll turn OFF. If it's OFF, it'll turn ON.
Glad it's what you wanted ^^
Basically, you're turning on a switch to let the game know that the lantern is ON. So next time, when the item is used, the game will first check if it's already ON or not. If it is, it will turn the lantern OFF. Similarly, if it's OFF, it will turn the lantern ON.
This method not only works for lanterns, it can also work for pictures/maps or even events or anything like that. Like, suppose you want to press a button to show a picture. Then when you press the button again, the picture will be gone.