Make event only trigger once when in certain range

How do I…

i want to make it so the delete block action only gets triggered when the position of the deletion is in the range (the event in middle)

What is the expected result

currently it just triggers it every frame but no matter where i put ‘once’ doesnt work… i tried using local variables to check but almost the same thing

What is the actual result

it gets triggered every frame so placing block in the same spot as where a block was deleted will cause it to get

Related screenshots

hi fellow friend, when placing a block there, check it theres a variable that days theres an deleted block there, and then remove that variable. so you no longer have deleted block variable where there is a block

do a climb checker (repeat event and a climb variable you add 1 to every time the repeat event runs)
and every time the checker runs use some conditions like
deletedBlocks[climb].x == position of the block u placed

1 Like

alr i can try that :slight_smile:


uhhh okay i made this thing and it works? sometimes idk what i did wrong but yeah… i may just be stupid

nevermind i decided to open gdevelop again and change it a bit and now it works ALL OF THE TIME!! finally :slight_smile: ye its not really checking w climb checker or whatever u called it but yeah. now i can move onto placed blocks which should be pretty easy

you have the climb = 0 the wrong place, it needs to run outside of the repeat

1 Like

i already have the data loading finished but thanks for helping :slight_smile: