If I have 4 slots for weapons and if I click on one of the slots, I want that one to be selected. How do I only have one selected at a time by unselecting the others? Possible to do without using arrays?
https://dl.dropboxusercontent.com/u/73836006/slotSelection.capx
https://dl.dropboxusercontent.com/u/495 ... slots.capx is how I would do it without slot arrays. Mmmm instance variables.
This is how I would do it with 1 event
https://drive.google.com/open?id=0B3JLq ... lFhTnpHUU0
If you need access to "selectedslot" at all time, you can move the var outside of the event and make it a global.
This is how I would do it with 1 event https://drive.google.com/open?id=0B3JLq ... lFhTnpHUU0 If you need access to "selectedslot" at all time, you can move the var outside of the event and make it a global.
Or even simpler:
Select Only One
Develop games in your browser. Powerful, performant & highly capable.
I was sure that picking all overrides the picked(touched) object, even if it's not a nested event, good to know I was wrong
Yeah, subevents follow the picking of the topevent, not of other subevents..
Thank you for all the suggestions.
This is by far the most simplest method I've seen yet. Going to use this everywhere!
LittleStain
[quote:22jqi6lf]Or even simpler: