I have one variable counting how many of a certain block is on screen with text attached to it that displays how many are there, and another variable that I need to count up one every time that the first variable only counts down.
The code works fine for the most part, but I would like to have the ability to have the blocks regenerate on screen but have the score not reset every time they come back on screen. How would I go about this?
Add it as another action, in same event as where you set regen_block variable to false.
At the start of the scene, go through each obj_block (use a repeat for each object event) and store the co-ordinates in a structure.
Once there are no blocks left in the scene, loop through each element of the structure (use the for each child variable event), creating an obj_block at each stored position
Give it a go, and come back to the forums if you get stuck.
The two events you want are accessed either by clicking tthis icon in the top right of the editor, or by right clicking on “Add a new event” in the event sheet :