Graal Forums  

Go Back   Graal Forums > Development Forums > NPC Scripting
FAQ Members List Calendar Search Today's Posts Mark Forums Read

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 05-29-2014, 05:16 PM
Jakov_the_Jakovasaur Jakov_the_Jakovasaur is offline
Deleted by Darlene159
Jakov_the_Jakovasaur's Avatar
Join Date: Sep 2013
Location: Deleted by Darlene159
Posts: 358
Jakov_the_Jakovasaur has much to be proud ofJakov_the_Jakovasaur has much to be proud ofJakov_the_Jakovasaur has much to be proud ofJakov_the_Jakovasaur has much to be proud ofJakov_the_Jakovasaur has much to be proud ofJakov_the_Jakovasaur has much to be proud ofJakov_the_Jakovasaur has much to be proud of
in that case why not just make a left and right version of the gani, and then for each gani file edit them as text and include:

PHP Code:
SCRIPT
function onPlayerEnters() {
  
player.stretchx = -1;
  
//player.stretchx = 1;
}
SCRIPTEND 
__________________
This signature has been deleted by Darlene159.
Reply With Quote
  #2  
Old 05-29-2014, 05:23 PM
i8bit i8bit is offline
Registered User
Join Date: Jul 2013
Posts: 146
i8bit is an unknown quantity at this point
Quote:
Originally Posted by Jakov_the_Jakovasaur View Post
in that case why not just make a left and right version of the gani, and then for each gani file edit them as text and include:

PHP Code:
SCRIPT
function onPlayerEnters() {
  
player.stretchx = -1;
  
//player.stretchx = 1;
}
SCRIPTEND 
I thought about it but wanted to avoid the complications of it because I'm using replaceAni but I'll figure it out! thanks for input though..
I'll see what I can do. If you think of anything else let me know!
Reply With Quote
  #3  
Old 05-29-2014, 05:53 PM
Emera Emera is offline
Delterian Hybrid
Emera's Avatar
Join Date: Mar 2011
Location: Newcastle Upon-Tyne
Posts: 1,704
Emera is a jewel in the roughEmera is a jewel in the rough
Quote:
Originally Posted by i8bit View Post
I thought about it but wanted to avoid the complications of it because I'm using replaceAni but I'll figure it out! thanks for input though..
I'll see what I can do. If you think of anything else let me know!
You can set an animation as an attribute.

PHP Code:
//player.attr[index] = "TheAni.gani";
player.attr[5] = "swim.gani"
Reply With Quote
  #4  
Old 05-29-2014, 07:20 PM
i8bit i8bit is offline
Registered User
Join Date: Jul 2013
Posts: 146
i8bit is an unknown quantity at this point
Quote:
Originally Posted by Emera View Post
You can set an animation as an attribute.

PHP Code:
//player.attr[index] = "TheAni.gani";
player.attr[5] = "swim.gani"
I could just use setAni for same thing...I messed around with it and I'd still have to make a left and a right of all the Ganis which I don't want to have to do...
It gets messed up with replaceAni.. (using default movement)

Why can't player.stretchx just work correctly
Maybe I should put in feature requests
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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 On
HTML code is Off

Forum Jump


All times are GMT +2. The time now is 01:58 PM.


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