Graal Forums  

Go Back   Graal Forums > Development Forums > NPC Scripting > New Scripting Engine (GS2)
FAQ Members List Calendar Search Today's Posts Mark Forums Read

 
 
Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #8  
Old 01-11-2007, 12:02 AM
Falcor Falcor is offline
Darth Cucumber
Falcor's Avatar
Join Date: Mar 2001
Location: At School
Posts: 2,874
Falcor is on a distinguished road
Send a message via ICQ to Falcor Send a message via AIM to Falcor Send a message via MSN to Falcor Send a message via Yahoo to Falcor
Quote:
Originally Posted by projectigi View Post
huh
what exactly do you mean by that
He means, put a script in a gani to show the HP bar, but only show the images when the mouse is over the player.. EG

NPC Code:


...

function update_bar() { ...some code to draw the HP Bars... }
function hide_bar() { ...some code to hide the HP Bars... }
function onTimeout() {
if(... some code to check if the mouse is on the player...) {
update_bar();
} else {
hide_bar();
}
setTimer(0.05);
}

...

__________________

subliminal message: 1+1=3
Reply With Quote
 

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 02:56 PM.


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