I'm currently working on an isometric game. I have set up a variable named "Di" (direction) which can be numbered 1 to 8 and I have created a sprite costume for each of the 8 possible directions of my main character. I am having difficulty telling my script which costume to show for each direction. It should be simple enough... If Di=1 show costume#1, If Di =4 show costume#4 etc... I just can't figure out how to do this.
Can any of you good Scratchers help me?
Offline
Erm... Make your sprite "non-turning" and add this:
when green flag clicked forever set [Di v] to (((direction) + (180)) / (45)) switch to costume (Di)
Offline