So, for my Assemblee entry
I'm currently trying to make a wall object that gets destroyed when the player collides with a certain part of it. Seems simple, I know but I'm having a really weird problem.
I put the following 4 variables in the Create Event
of the breakable wall object to describe the two points needed for a collision rectangle.
Then I put the following code in the Step Event
to handle the collision:
But when the wall object enters the view (I disable all instances outside the view), get this error:
for object breakwall_u:
Error in code at line 1:
at position 24: Unknown variable r1
I initialized all four variables in the Create Event, so I have no clue why this happens. I have also thoroughly checked for typos and naming conflicts, tried differnt variable names etc. but alas everything seems to be OK. I've been trying to figure this out for almost a day now and I'm completely lost.
Any help would be greatly appreciated.