View Single Post
  #2  
Old 07-05-2006, 12:43 PM
xXziroXx xXziroXx is offline
Malorian
xXziroXx's Avatar
Join Date: May 2004
Posts: 5,289
xXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant future
Quote:
Originally Posted by Stefan
For rotating images you can either:
- use the GS2 function findimg(index) and use the attribute "rotation" (see Graal Bible):
PHP Code:
with (findimg(200)) {
  
player.x;
  
player.y;
  
image "bush.png";
  
rotation pi/2;

- set sprite attributes in a gani by editing the gani with a text editor and add a line like this
NPC Code:

ROTATEEFFECT spritenumber angle


There you go.
__________________
Follow my work on social media post-Graal:Updated august 2025.
Reply With Quote