When I try to create 3D Particles, I get thie error message on run :
<<Error: Failed to set particle emitter 100001 image, emitter does not exist in main.agc at line 26>>
Here is the source code :
// Project: Universe Travel
// Created: 2020-07-29
// show all errors
SetErrorMode(2)
// set window properties
SetWindowTitle( "Universe Travel" )
SetWindowSize( 1024, 768, 0 )
SetWindowAllowResize( 1 ) // allow the user to resize the window
// set display properties
SetVirtualResolution( 1024, 768 ) // doesn't have to match the window
SetOrientationAllowed( 1, 1, 1, 1 ) // allow both portrait and landscape on mobile devices
SetSyncRate( 60, 0 ) // 30fps instead of 60 to save battery
SetScissor( 0,0,0,0 ) // use the maximum available screen space, no black borders
UseNewDefaultFonts( 1 ) // since version 2.0.22 we can use nicer default fonts
sunParticles As Integer = -1
sunParticleImg As Integer = -1
sunParticleImg = loadImage( "Flame_Alpha.png" )
sunParticles = Create3DParticles( 0.0, 0.0, 0.0 )
SetParticlesImage( sunParticles, sunParticleImg )
do
print( sunParticles )
Sync ( )
loop
line 26 is "SetParticlesImage" line.. If I remove it and replace it with another 3D Particle command the error point the particle command.
Why ? Is there a bug with 3D Particle on AppGameKit classics ?