Bawat
Member
Create event of ClawTest
Space Bar press event
The above code runs fine, and I can see through the debugger, that the instance's image_angle has been set to 180. However somewhere before the Draw event, it gets repeatedly set back to 0.
I have used Find & Replace to find all references of image_angle in the project, and have placed a breakpoint at them. However image_angle gets reset to 0 again before any of those breakpoints get hit. Stepping over code until it changes to tell me that whatever is going on is happening between the Step Begin events and the Draw events.
I tested if changing sprite_index could cause this, but it doesn't.
Is this reset to 0 by design?
Anyone have any ideas as to what's going on?
Bawat
Images of image_angle being set, and a video of it getting reset. (You can see image_angle in the debugger)
https://imgur.com/a/cE2jYoM
https://i.gyazo.com/797df24ce2a0e1a083f609eca2c8d297.mp4
Code:
var ii = instance_create_deformable(player.x, player.y, spriteID);
ii.image_angle = 180;
Code:
image_angle = 180;
I have used Find & Replace to find all references of image_angle in the project, and have placed a breakpoint at them. However image_angle gets reset to 0 again before any of those breakpoints get hit. Stepping over code until it changes to tell me that whatever is going on is happening between the Step Begin events and the Draw events.
I tested if changing sprite_index could cause this, but it doesn't.
Is this reset to 0 by design?
Anyone have any ideas as to what's going on?
Bawat
Images of image_angle being set, and a video of it getting reset. (You can see image_angle in the debugger)
https://imgur.com/a/cE2jYoM
https://i.gyazo.com/797df24ce2a0e1a083f609eca2c8d297.mp4
Last edited by a moderator: