Graal Forums  

Go Back   Graal Forums > Development Forums > Gani Construction
FAQ Members List Calendar Today's Posts

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 06-12-2006, 11:29 AM
_Z3phyr_ _Z3phyr_ is offline
Banned
Join Date: Sep 2003
Location: Louisiane
Posts: 390
_Z3phyr_ is an unknown quantity at this point
rotating an image in graalshop?

When I downloded the Developers pack, it noted this:

"The GraalShop.exe has been updated on 2006-01-09 for enabling ATTACHSPRITE2 (attach below), faster startup and it is not deleting EFFECTMODE, ROTATEEFFECT etc. anymore."

So where do I find this "ROTATEEFFECT" thing?
And what about the others? What do they do to what?


If I am misreading or misinterpreting the above message somehow, is there any kind of method in GScript to rotate an image? to use the "rotateeffect" word above...

params[2]==rotateeffect("imagefilename");
//or
setani("ganifilename",rotateeffect("imagefilename" );

Is there at least some kind of equivalent to this?
Would it work if I just put that in the Graalshop Def.param2 slot?

The Graal Wiki says nowhere about rotating images (except for an article on Euler rotation, but I don't see any translation to GScript in it), however I've been told that most stuff this new GScript can do isn't altogether released and that only people close to Stefan know stuff before everyone else.
Reply With Quote
  #2  
Old 06-13-2006, 03:03 AM
excaliber7388 excaliber7388 is offline
Banned
excaliber7388's Avatar
Join Date: Jul 2005
Location: US
Posts: 5,229
excaliber7388 can only hope to improve
Send a message via AIM to excaliber7388
You're not close enough to be told that
...me neither XD
Reply With Quote
  #3  
Old 06-13-2006, 04:31 AM
Sulukra Sulukra is offline
Registered Punmaster
Sulukra's Avatar
Join Date: Jul 2005
Location: That place north of the U.S.
Posts: 860
Sulukra is on a distinguished road
EFFECTMODE spritenumber 0-2
ROTATEEFFECT spritenumber angle (default 0)
STRETCHXEFFECT spritenumber stretchfactor (default 1)
STRETCHYEFFECT spritenumber stretchfactor (default 1)
ATTACHSPRITE2 spritenumber spritenumber deltax deltay

Cough cough. Pretty sure you stick that in the gani .txt like you do with light effects.
__________________
Quote:
Originally Posted by Valikorlia IRC Chat
Sulukra:You guys up for twenty questions?
Cor:Yeah.
-Twenty questions later-
Cor:Alright, so we all fail. What was it?
Sulukra:My handheld 20 questions game.
Cor:Curse you, you Canadian fiend.
Reply With Quote
  #4  
Old 06-13-2006, 04:54 AM
excaliber7388 excaliber7388 is offline
Banned
excaliber7388's Avatar
Join Date: Jul 2005
Location: US
Posts: 5,229
excaliber7388 can only hope to improve
Send a message via AIM to excaliber7388
An insider! Quick, torture him, find out what else he knows!

Thanks...now I have to get better at ganis XD
Reply With Quote
  #5  
Old 06-13-2006, 05:05 AM
Sulukra Sulukra is offline
Registered Punmaster
Sulukra's Avatar
Join Date: Jul 2005
Location: That place north of the U.S.
Posts: 860
Sulukra is on a distinguished road
If it hadn't been posted in the New Graalshop.exe thread about ten posts down, you might be able to torture me.

QUICK, RUN BEFORE THEY GET OUT THE STRETCHING RACK!
__________________
Quote:
Originally Posted by Valikorlia IRC Chat
Sulukra:You guys up for twenty questions?
Cor:Yeah.
-Twenty questions later-
Cor:Alright, so we all fail. What was it?
Sulukra:My handheld 20 questions game.
Cor:Curse you, you Canadian fiend.
Reply With Quote
  #6  
Old 06-15-2006, 10:49 AM
Admins Admins is offline
Graal Administration
Join Date: Jan 2000
Location: Admins
Posts: 11,693
Admins has much to be proud ofAdmins has much to be proud ofAdmins has much to be proud ofAdmins has much to be proud ofAdmins has much to be proud ofAdmins has much to be proud of
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

Reply With Quote
  #7  
Old 06-15-2006, 10:52 PM
_Z3phyr_ _Z3phyr_ is offline
Banned
Join Date: Sep 2003
Location: Louisiane
Posts: 390
_Z3phyr_ is an unknown quantity at this point
I must've overlooked. The only rotation thing I was able to find was the particle emitter things.

Nonetheless, danke.
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Forum Jump


All times are GMT +2. The time now is 02:37 PM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.