Game Development Community

Trying to alter mounted objects

by Mr Zurkon · in iTorque 2D · 09/24/2011 (12:17 pm) · 1 replies

I'm trying to stop a particle effect using stopEffect. The particle effect is mounted to the player object with MountInheritAttributes set to 0.

Whenever I try to stop or alter anything attached to the player I'm unable to, because it still apparently inherits everything from the object it is being mounted onto. I'm able to delete the object, but not alter it in any way.

stopEffect(false, true) works (deleting the object)
stopEffect(false, false) doesnt (stopping it without deleting)

Is there some other field I have to specify as well? This happens to sprites I attach as well.

#1
09/24/2011 (1:29 pm)
I am not sure if this would help you as I am unsure for your specific question. But perhaps a run around solution would be to dismount the particle effect and simply hide it (via position or layer), then, if you want you could stop it, easing any engine stress. Then remount it and start when needed.


?