Whenever I try this:
// Dark GDK - The Game Creators - www.thegamecreators.com
// the wizard has created a very simple 3D project that uses Dark GDK
// it can be used as a starting point in making your own 3D games
// whenever using Dark GDK you must ensure you include the header file
#include "DarkGDK.h"
// the main entry point for the application is this function
void DarkGDK ( void )
{
dbSetDisplayMode( 1024, 768, 32 );
//Dbsync
dbSyncOn( );
dbSyncRate( 60 );
dbMaximizeWindow( );
//Load objects, and position camera
dbLoadObject( "Block pet_x.x", 1 );
dbLoadImage("fire.bmp", 2);
dbPositionCamera( 0, 0,-10 );
dbRotateObject(1, dbRND(255.0f), dbRND(255.0f), dbRND(255.0f));
//Create particles
dbMakeParticles(3, 2, 500, 10.0f);
dbPositionParticles(3, 0, 0, 0);
dbColorParticles(3, 255, 100, 0);
dbSetParticleEmissions(3, 10);
dbSetParticleSpeed(3, 0.01f);
dbSetParticleGravity(3, .6);
while (dbShiftKey() == 1)
{
dbHideParticles(3);
}
while (!dbEscapeKey( ))
{
while ( LoopGDK ( ) )
{
dbSync( );
}
}
return;
}
Whenever I have tried pressing shift key, the particles don't disappear.
(By the way, the .x file I loaded is just a red cube.)
ow! that hurt!