Graal Forums  

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

 
 
Thread Tools Search this Thread Rate Thread Display Modes
Prev Previous Post   Next Post Next
  #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.
 


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 03:13 AM.


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