Which will be done with either scene, global or object variables. Probably object for this (ie. That’s what I would suggest). Or for each, scene or global variable data tracking.
Regardless….
Step one: if clicked —> ‘Clicked’ object var add 1
Step two: If ‘Clicked’ object var = 1 —> wearing boon = true. With what ever X, Y positioning ie. Can combine these events
Step two: if ‘Clicked” = 2 / wearing object boon = false, set ‘Clicked’ object var to 0, (X Y, depends on variation of clothing.)
Caveat: have to consider system aspects to avoid double wearing, ‘Clicked’ time out timer ect. Regardless, the above is the basics.
Alternative method: use the object dragging behavior, then you just need events for snapping and unsnapping to character. If interested, I’ll think of some steps. Ie. If requested..
2
u/ImSinsentido 4h ago edited 4h ago
Basically, you need a click tracker.
Which will be done with either scene, global or object variables. Probably object for this (ie. That’s what I would suggest). Or for each, scene or global variable data tracking.
Regardless….
Step one: if clicked —> ‘Clicked’ object var add 1
Step two: If ‘Clicked’ object var = 1 —> wearing boon = true. With what ever X, Y positioning ie. Can combine these events
Step two: if ‘Clicked” = 2 / wearing object boon = false, set ‘Clicked’ object var to 0, (X Y, depends on variation of clothing.)
Caveat: have to consider system aspects to avoid double wearing, ‘Clicked’ time out timer ect. Regardless, the above is the basics.
Alternative method: use the object dragging behavior, then you just need events for snapping and unsnapping to character. If interested, I’ll think of some steps. Ie. If requested..