Hello guys,
Can please some explain to me how can I delete sub positions correctly through the command: "gpup_deleteSubPosition( ID, pos )" ? What that the position variable mean? How is it applied?
I have this code:
cloudthird = gpup_loadEffect("cloud", 0, 0, 0, 8)
gpup_emitterActive(cloudthird, 1)
gpup_setglobalscale(cloudthird, 30)
gpup_setglobalposition(cloudthird, getcamerax(1) + Random2(-800, 800), getcameray(1) + 200, getcameraz(1) + Random2(-800, 800))
for cldcrte = 1 to 8
gpup_addSubPosition(cloud, getcamerax(1) + Random2(-200, 200), getcameray(1) + 200, getcameraz(1) + Random2(-200, 200))
gpup_addSubPosition(cloudsecond, getcamerax(1) + Random2(-200, 200), getcameray(1) + 200, getcameraz(1) + Random2(-200, 200))
gpup_addSubPosition(cloudthird, getcamerax(1) + Random2(-200, 200), getcameray(1) + 200, getcameraz(1) + Random2(-200, 200))
next cldcrte
How can I delete those effects?
Thank you very much!
www.alexmatei.com