Graal Forums  

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

 
 
Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1  
Old 04-01-2007, 05:49 AM
DustyPorViva DustyPorViva is offline
Will work for food. Maybe
DustyPorViva's Avatar
Join Date: Sep 2003
Location: Maryland, USA
Posts: 9,589
DustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond repute
Send a message via AIM to DustyPorViva Send a message via MSN to DustyPorViva
Baddies/compus gani's

I didn't know where to post this, here or in the gani section. I figure that since this is mainly to help scripters, I'd post it here.
As a little project I was starting for myself, I created gani's of the current soldier baddy. It's a little complex, but that's because of the fact that baddies can have head directions seperate from their body direction.

The baddy's image uses the NPC's head image, IE #3.
The head of the baddy must be shown using a showani. I was going to use it by setting P1, but I found that you can't pass parameters, which was needed(unless there is a way).
When showing the gani, the direction of the head is passed in the parameter as 0-3, like so:
NPC Code:
showani 0,x,y,dir,baddyhead,#v(headdir);


GS2:
NPC Code:
showani(0,this.x,this.y,this.dir,"baddyhead", this.headdir);

Attached Files
File Type: gani baddywalk.gani (1.7 KB, 157 views)
File Type: gani baddyhead.gani (1.3 KB, 166 views)
File Type: gani baddyidle.gani (1.5 KB, 138 views)

Last edited by DustyPorViva; 04-01-2007 at 08:12 AM..
Reply With Quote
 


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 06:18 PM.


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