Turn behavio?.(solved)

poehyrulian

  • Posts: 78
Can anyone help me fix this. The game freezes when it starts but only when the set turn 1 to true is in place

« Last Edit: September 24, 2016, 10:42:35 am by poehyrulian »

xplosion28

  • Posts: 275
You have twist with a 30 force in an updating event, that would be the problem I think.  Because unless you are clicking very quickly after the 0.5 secs, it will start twisting those actors very rapidly, I'm not sure that should cause it to freeze but definitely hurt the frame rate.  Just a guess though from what I see, if you only want the actor to twist once, add another boolean check or set the turns off immediately in the updating event rather than waiting for the mouse click. 

poehyrulian

  • Posts: 78
Well the wheel twisting thing is just to test out the turn mechanic. Once the turns are taking place I'm going to delete the when updating event and replace with button functions.

xplosion28

  • Posts: 275
Try replacing it right now to see if it works correctly since I think the when updating is causing the issue.

poehyrulian

  • Posts: 78
Ok I'll get back to you in a while

poehyrulian

  • Posts: 78
So I actually completely redid it. I took away the SPD factor and now it works. However when it's turn one and the mage is selected it goes straight to turn three and I can't figure out how to stop it.

xplosion28

  • Posts: 275
Switch the If statements for "if turn 2" and "if turn 3" into "otherwise if" statements.  I think its cycling though the whole thing after the first turn, the otherwise if should fix it.

poehyrulian

  • Posts: 78
That did the trick. Thanks a lot yo.