- Code: Select all
if (frame%2==0)
x+=1;
But GE does not allow this to execute and says it's an error:
- Code: Select all
if (animpos%2==0)
animpos+=1;
Would anyone know why?
if (frame%2==0)
x+=1;
if (animpos%2==0)
animpos+=1;
skydereign wrote:That's because % can only be used with integers, and oddly enough, animpos is not an integer. You can cast it to be one though, so putting (int) before it will make that line work.
Users browsing this forum: No registered users and 1 guest