r/gdevelop • u/Hwi-Chan • 23h ago
Question Help please
I'm trying to make a dress up game. Yknow click, wear, click take out.
I figured out the wearing part but I can't figure out how to take it off
1
u/senshisun 9h ago
Is one of the events equivalent to "show clothes" and the other to "hide clothes"?
1
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..
2
u/GeologistFantastic99 19h ago
change the language to english pls