CAPX: https://www.sugarsync.com/pf/D6025908_4317202_6015268
I've got a door that will swing open when the character moves over the green pad. It should open a full 90-degrees. The open and closed values are stored to two instance variables (lines 2 & 3). I use the "rotate towards angle" action (lines 20 & 21), and at one point, it worked. Regardless of the parameter of how many degrees to move. Any ideas why it stops just a few degrees short?
According to the manual, the action should rotate the full amount specified, but, suddenly it's not doing so.
disable line 24 - and it opens to 90deg.
so i think it is opening and closing back 3 degrees ?
Develop games in your browser. Powerful, performant & highly capable.
Did you get any further with this?
I did! Thank you. Sorry, my phone is horrible to reply with.
My problem was that the red object plate had an initial value of 0, so line 24 automatically started to take effect. I changed the initial value to 2, and that solved the problem.