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
  #22  
Old 08-31-2011, 11:40 AM
Hoyt1134 Hoyt1134 is offline
Registered User
Join Date: Jul 2004
Posts: 18
Hoyt1134 is on a distinguished road
Since Testbed is gone, I can't really mess around with the script anymore, but there was a command in v6, drawobject, that I was playing around with to draw ganis onto the drawingpanel. It was still really buggy though, and allowed either rotation or alpha-transparency, but not both. The example posted above was a pretty basic script, but it should work if you just add more drawimages.

"hoyt_white.png" Was simply a white square image that was stretched over the drawingpanel, I used a gani to draw light images on the panel in alpha mode 2, then used alpha mode 2 for the entire drawing panel. You run into slowdowns pretty fast with more light sources depending on the computer. You also have to compensate for screen movement and light source movement due to the slow updating of the drawing panel. I was able to do glowing projectiles with the shoot command, and have colored light sources, but unable to do image rotation. Some of this may have changed with the newest version of v6 but I havn't gotten a chance to test it since Testbed went offline.
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 10:04 AM.


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