1 person found this helpful
Lingo doesn't use the '+=1' construct that other languages understand, so your if statement might be reconstructed as:
tCurrentTime = member(1).model("group01").bonesplayer.currenttime if tCurrentTime < 1699 then member(1).model("group01").bonesplayer.currenttime = tCurrentTime + 1 end if
thanks for that, I was unaware of lingo not using +1 partially because no error was thrown. I havent tried the code yet, but without director throwing an error I had no idea of a syntax problem
I tried it and that indeed worked, but a side effect happened. I use the arrow keys to control the character position. after using the currentime code, now the arrow keys speed up the animation and cause it to play faster. no engine really supports frame by frame animation. so its not completely surprising it doesnt work properly.
for whatever reason the current time code is being triggered by the arrow keys. despite being set to the p key