p = ParticleEffect()
I’m trying to make the code spawn the particle system, then wait, then stop it. It keeps returning
AttributeError: 'ParticleEffect' object has no attribute 'append'
Does anyone know why? I’m sure it’s a small mistake by me
You are trying to call append() on a ParticleEffect as though it were a Sequence, but it is not. Did you find example code that suggested this was possible?
Even if the append() worked, you call disable() right after you append(), so it would stop before it could actually run the Wait.
You might instead want to just start it, then start a separate Sequence that uses Func to call disable() after the Wait. Or, you could use taskMgr.doMethodLater to schedule a function to be run after that time to stop the particle system.
sorry, could you provide some sample code so that I can see what you’re talking about?
I am curious, if I may: what was it that suggested that you could append a “Wait” object to a ParticleEffect?