Facebook Twitter YouTube Frictional Games | Forum | Privacy Policy | Dev Blog | Dev Wiki | Support | Gametee


Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Help ! Using variables (SOLVED)
Darkfire Offline
Senior Member

Posts: 371
Threads: 22
Joined: May 2014
Reputation: 15
#5
RE: Help ! Using variables

(05-21-2014, 08:44 PM)Mudbill Wrote: Well, the function doesn't repeat because it is only called once. You enter the level, 1 particle system is removed, and then the script is finished. You need something to recall this script.

I recommend using a for-loop instead. They're quite simple, really.

PHP Code: (Select All)
for(int i 0302; ++i) {
    
DestroyParticleSystem("ParticleSystem_" i);

Thanks, it actually worked. Just one tiny downside: the particles load for one "animation" and then they disappear. I think I can't fix that (Since particles are in the level when it starts), but it isn't so bad.

Is there some page with for-loops tutorial ? Because I can't find one D:

Ps. Huge thanks Mudbill, I actually learned most of scripting stuff from your videos.
05-22-2014, 02:22 PM
Find


Messages In This Thread
Help ! Using variables (SOLVED) - by Darkfire - 05-21-2014, 08:13 PM
RE: Help ! Using variables - by Traggey - 05-21-2014, 08:36 PM
RE: Help ! Using variables - by DnALANGE - 05-22-2014, 11:08 AM
RE: Help ! Using variables - by Mudbill - 05-21-2014, 08:44 PM
RE: Help ! Using variables - by Darkfire - 05-22-2014, 02:22 PM
RE: Help ! Using variables - by PutraenusAlivius - 05-22-2014, 03:56 PM
RE: Help ! Using variables - by Mudbill - 05-22-2014, 03:20 PM
RE: Help ! Using variables - by Darkfire - 05-22-2014, 03:44 PM



Users browsing this thread: 1 Guest(s)