Graal Forums  

Go Back   Graal Forums > Private forums > Graal4 Forums > Graal V4 Main Forum
FAQ Members List Calendar Search Today's Posts Mark Forums Read

 
 
Thread Tools Search this Thread Rate Thread Display Modes
  #1  
Old 12-10-2005, 12:14 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
Exclamation Graal v4.02 revision 14 released

A new version for Windows and Linux has been released. Sorry to the Mac users, we are still working on some speed improvements for Graal 3D and the microphone support.

Updates:
- Fixed a problem with disappearing npcs when reentering a level after more than 5 minutes and having active npcs there

- Fixed the position of gani-sounds on maps and gmaps

- Particle engine: it is possible to let showimgs automatically follow the player, npc or projectile by using the attachtoowner variable:
PHP Code:
with (findimg(200)) {
  
attachtoowner true;
  
attachoffset = {0,0,0};

'attachoffset' is optional. This new variables can be used to let a showimg, or a particle emitter of a showimg (showimg.emitter) automatically follow the player or npc, and so making the scripting of particle effects simplier (also works in gani scripts, just create a particle effect on the playerenters event).

- Particle engine: using the new emitter.continueafterdestroy flag (true or false) you can let the particles smoothly fade out - by default all showimgs and particles are removed once the object (player, npc, projectile) is disappearing; with this option the existing particles will continue to fly, but new particles are not emitted.
A simple effect for projectile ganis (shoot command):
PHP Code:
SCRIPT
function onPlayerEnters() {
  
with (findimg(200)) {
    
attachtoowner true;
    
layer 2;

    
// Emitter attributes
    
emitter.continueafterdestroy true;
    
emitter.delaymin 0.05;
    
emitter.delaymax 0.05;
    
emitter.nrofparticles 1;

    
// Basic particle attributes
    
emitter.particle.lifetime 3;
    
emitter.particle.image "g4_particle_smoke.png";
    
emitter.particle.mode 1// alpha transparent
    
emitter.particle.alpha 0.8;
    
emitter.particle.zoom 1;

    
// Movement
    
emitter.particle.angle pi 2;
    
emitter.particle.speed 8;
    
emitter.addglobalmodifier("range"0100000"movex""add", -4, -5);
    
emitter.addglobalmodifier("impulse"0.20.2"spin""multiply"0.90.9);
    
emitter.addlocalmodifier("once"00"angle""add", -0.20.2);
    
emitter.addlocalmodifier("once"00"rotation""replace"02*pi);
    
emitter.addlocalmodifier("range"13"alpha""replace"0.80);
    
emitter.addlocalmodifier("range"03"zoom""add"0.250.25);
    
emitter.addlocalmodifier("range"00.5"speed""replace"124);
    
emitter.addlocalmodifier("range"0.53"speed""replace"41.5);
    
emitter.addlocalmodifier("once"00"spin""replace"24);
  }
}
SCRIPTEND 
- More gani effects:
PHP Code:
ROTATEEFFECT sprite angle
STRETCHXEFFECT sprite factor 
(default 1)
STRETCHYEFFECT sprite factor (default 1
Works similar to the showimg and particle attributes rotation, stretchx and stretchy.
  #2  
Old 12-10-2005, 12:21 AM
Yen Yen is offline
Banned
Yen's Avatar
Join Date: Oct 2005
Location: Nova Scotia, Canada
Posts: 1,085
Yen is an unknown quantity at this point
Send a message via AIM to Yen Send a message via MSN to Yen
Will attached images still be rounded to the nearest .5?
  #3  
Old 12-10-2005, 12:26 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
Quote:
Originally Posted by Yen
Will attached images still be rounded to the nearest .5?
x?x
  #4  
Old 12-10-2005, 12:28 AM
Yen Yen is offline
Banned
Yen's Avatar
Join Date: Oct 2005
Location: Nova Scotia, Canada
Posts: 1,085
Yen is an unknown quantity at this point
Send a message via AIM to Yen Send a message via MSN to Yen
z-z Sorry, I worded that wrong.
Right now, it draws players and showimg effects from other players' weapons on the nearest .5 x/y.
0.3 -> 0
1.3 -> 1
1.7 -> 1.5

Do the attached images draw where you see the player they're attached, or does it round the image's x/y to the nearest .5?
  #5  
Old 12-10-2005, 01:03 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
It's the same like before and it will not be changed in the near future, those images (index below 200) are sent with less precision and should only be used for things that cannot be done otherwise, the attachtoowner thing is only clientside and mainly meant for particles and gani scripts.
  #6  
Old 12-10-2005, 02:26 AM
haunter haunter is offline
Registered User
haunter's Avatar
Join Date: Mar 2001
Posts: 7,989
haunter is on a distinguished road
Stefan, I've asked Cheetos to bring this to your attention, but I might as well post it here too.

I've made a few changes/fixes to the pics1.png over time... Here's the thread (I'll attach the most recent version here as well)

I was hoping you could include this in the following Graal updates and make it the default pics1.png download. There are just some pixel errors that are fixed, some inconsistencies (Some tiles still used the old tree parts). I also fixed the transparency issue that I had with the gravestone tiles (Showing black where there should've been grey when playing Graal) so hopefully that won't cause anybody problems with this tileset.

Last edited by haunter; 07-12-2007 at 08:16 PM..
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

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:21 PM.


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