ok ok here we go again, making a duplicate protection, where if the pet is already owned, it turned into coins. Cant seem to make it
It might be easier to use a for each child event but your current issue is that the duplicate loop counter only increases if the variables match. You need the conditions to be a subevent of the repeat or for each child. That way it increases regardless of the value.
Repeat
(subevents)
… Variable = array[Counter] do something
… Counter + 1 (no conditions)
You could also add a new loop counter variable. It adds a local variable and automatically increases it.
https://wiki.gdevelop.io/gdevelop5/events/repeat/#loop-counter-variable
1 Like
thanks!! slr im actually trying to fix something
1 Like
