pyro and timelinefx- Monkey Runtime Error
Monkey Forums/Monkey Beginners/pyro and timelinefx- Monkey Runtime Error
| ||
Hi there, I am wondering if you could help me resolve the problem I am facing. I am trying to plug in timelinefx effect to my pyro sample. The effect works in an mojo's app but not in Pyro's screen: Monkey Runtime Error : TypeError: Cannot read property 'SetAlpha' of null S:/tools/MonkeyXPro85e/modules/mojo/graphics.monkey<272> S:/tools/MonkeyXPro85e/modules_ext/timelinefx/particlemanager.monkey<380> S:/rd/rdmonkey<252> S:/tools/MonkeyXPro85e/modules_ext/playniax/pyro/engine/screenmanager.monkey<173> S:/tools/MonkeyXPro85e/modules_ext/playniax/pyro/engine/screenmanager.monkey<244> S:/tools/MonkeyXPro85e/modules/mojo/app.monkey<113> Class MenuScreen Extends prScreen Field MyEffects:tlEffectsLibrary Field MyEffect:tlEffect Field MyParticleManager:tlParticleManager Method OnCreate:Int() 'Set how many times per second the game should update and render itself MyEffects = LoadEffects("effects1") MyEffect = MyEffects.GetEffect("Flash Burst 1") MyParticleManager = CreateParticleManager(5000) MyParticleManager.SetScreenSize(WIDTH, HEIGHT) MyParticleManager.SetOrigin(WIDTH / 2, HEIGHT / 2) SetUpdateFrequency(60) SetUpdateRate(60) Return 0 End Method OnRender:Int() MyParticleManager.DrawParticles() Return 0 End Method OnUpdate:Int() MyParticleManager.Update() Return 0 End End Would you be so king to help, cheers! |
| ||
Timelinefx is trunk from SVN Pyro is 1.01i Line 252 is: MyParticleManager.DrawParticles() Thank you! |
| ||
Pyro is Mojo 2 only. TimeLineFX is a 3rd party module and as far as I know there is no Mojo 2 version of TimeLineFX (yet) so it will not work with Pyro. Pyro does have a particle engine but not a fancy particle editor as TimeLineFX yet so you need to program your particle effects. A particle engine is in the works though. |
| ||
Sure, thanks! |