@Paul
1.
ok, here the functions i use for the particles.
the problem began with compiler update.
2.
ok fine,no problem, but i need broadcast too,
the problem i had is i can install only one agk player at
my handy. i used a community made player for v2a3.
it would be great if u make extra player in google store for v2
that i/we can test/use old and new agk version.
SetDisplayAspect( 9.0/16.0 ) //HD
Setvirtualresolution(720,1280)
inside start Rocket Function
//-------------------------------------------------------------
Rocket as TRocket
Rocket=CreateRocket()
//-------------------------------------------------------------
ret=CountDown()
GasCreate(Rocket.spr)
function CreateRocket()
Rocket as TRocket
spr=loadsprite("rocket.png")
setspritesize(spr,720/2,-1)
x#=720.0/4.0
y#=getvirtualheight()-getspriteheight(spr)/2.0
setspritepositionbyoffset(spr,x#,y#)
setspritedepth(spr,10)
Rocket.spr=spr
Rocket.emitter=1
Rocket.scale#=1.0
endfunction Rocket
function GasCreate(spr)
// gas cloud using particles
// this example program may run slower on certain platforms due
// to the number and size of particles being used
// load particle image
img=LoadImage ( "particle.png" )
// create the gas cloud
CreateParticles ( 1, 0,0 )
setparticlesdepth(1,11)
SetParticlesFrequency ( 1, 200 ) //500
SetParticlesLife ( 1, 2.5 )
SetParticlesSize ( 1, 64 )
SetParticlesStartZone ( 1, -10, 0, 10, 0 )
SetParticlesImage ( 1, img )
//SetParticlesDirection ( 1, 25, 50 )
SetParticlesDirection ( 1, 0, 50 )
//SetParticlesAngle ( 1, 360 )
SetParticlesAngle ( 1, 45 )
//AddParticlesForce ( 1, 2.5, 3.0, 0, 1000 ) //200
AddParticlesForce ( 1, 0.5, 3.0, 0, 200 ) //200
//hellblau / weiß / gelb orange rot schwarz
AddParticlesColorKeyFrame ( 1, 0.0, 0,255,255, 0)
AddParticlesColorKeyFrame ( 1, 0.5, 255,255,255,128)
AddParticlesColorKeyFrame ( 1, 1.0, 255, 255, 0,192)
AddParticlesColorKeyFrame ( 1, 1.5, 255, 128, 64,192)
AddParticlesColorKeyFrame ( 1, 2.0, 255, 0, 0,192)
AddParticlesColorKeyFrame ( 1, 2.5, 0, 0, 0, 0)
GasPosition(spr)
endfunction
function GasPosition(spr)
x#=getspritexbyoffset(spr)
y#=getspriteybyoffset(spr)+90.0
setparticlesposition(1,x#,y#)
endfunction
AGK 108 (B)19 : Windows 8.1 Pro 64 Bit : AMD Radeon R7 265