TimelineFX in Monkey-X, please help
Home › Forums › TimelineFX Editor › TimelineFX in Monkey-X, please help
Tagged: monkey x
- This topic has 9 replies, 2 voices, and was last updated 8 years, 1 month ago by zxretrosoft.
-
AuthorPosts
-
October 23, 2016 at 4:22 pm #5619
zxretrosoftParticipantHello friends!
Please, help me with example in TimelineFX. I do not know how to use effects from TimelineFX in Monkey-X language.
I bought TimelineFX and MonkeyX Studio. TimelineFX is a great tool! And now I try this example – it is likely to be a problem in English, but I can not run 🙂 I’am sorry…
In the folder ‘modules’ is folder ‘timelinefx’ and there is ‘examples’ and ‘ParticleManager.monkey’.
If I run this file, all is OK. In folder ‘ParticleManager.data’ are ‘data.xml’ and PNG files…
This is output:
But now. If I export my own effect from TimeLineFX, everything is the same. I UNZIP EFF file. Just I rewrite files in folder ‘ParticleManager.data’. And it does not work.
This is output:
Please, what am I doing wrong? :-/
Thank you in advance!P.S. Sorry for my English, I hope it is understandable 😉
- This topic was modified 8 years, 1 month ago by zxretrosoft.
October 24, 2016 at 12:42 am #5621
peterigzKeymasterHi, your English is fine 🙂 In the code you should see where it is loading “toon explosion 2”, you will need to change that to whatever effect is in your file. Also, I’m not sure if you realise but you can export as a zip from the editor: File > Export, which will be a bit more easier and tailored for unzipping into a monkey data folder.
October 24, 2016 at 5:41 am #5625
zxretrosoftParticipantThank you peterigz!
Yes, I know about File->Export, it’s comfortable.
But now. I still do not know what to do? “you will need to change that to whatever effect is in your file” = I make folder ‘toon explosion 2’? And where do I rename files? In ‘data.xml’? I’m sorry…
Anyway, I do not need sounds.
October 24, 2016 at 8:10 am #5626
peterigzKeymasterI mean in the monkey file “ParticleManager.monkey” there is a line that loads that effect, so you’ll need to change that to the effect that you have in your effects file.
October 24, 2016 at 8:24 am #5627
zxretrosoftParticipantUffff, I guess I’m stupid. Sorry…
Please, try this. I have this example:
rigzsoft exampleI make folder ‘example’ and in this folder I make folder ‘example.data’. Source code is ‘example.monkey’.
(In ‘modules’ I have ‘diddy’ and ‘timelinefx’ as well.)And now. I run TimelineFX editor and I make own effect. Export this effect to ZIP and this ZIP I unzip into folder ‘example.data’.
And what do I do now? :/
If compile, then is this error:
- This reply was modified 8 years, 1 month ago by zxretrosoft.
- This reply was modified 8 years, 1 month ago by zxretrosoft.
- This reply was modified 8 years, 1 month ago by zxretrosoft.
October 25, 2016 at 8:46 am #5631
zxretrosoftParticipantPlease, somebody help me 🙁 How do I set up the paths? What is ‘toon explosion 2’ ?
I just want to work a prime example. Nothing more, nothing less. Thank you!October 25, 2016 at 9:49 am #5632
peterigzKeymasterHi, sorry I’m quite busy with day job at the moment so some responses are a bit delayed 🙂
So your folder structure should be like this:
example.monkey
example.data
—myeffectsSo myeffects is the folder that contains your unzipped effects file. Then in the example.monkey code, you need to change the line:
MyEffects = LoadEffects(“explosions”)
to:
MyEffects = LoadEffects(“myeffects”)
and then get whichever effect you want in your library with this line:
MyEffect = MyEffects.GetEffect(“toon explosion 2”)
so change “toon explosion 2” to whatever the name of your effect is. Hope that helps!
- This reply was modified 8 years, 1 month ago by peterigz.
October 25, 2016 at 10:17 am #5634
zxretrosoftParticipantThank you peterigz!
Well, I have first part OK. I hope.
But now, I really do not understand which name I enter into the line:
MyEffect = MyEffects.GetEffect(“toon explosion 2”).If I leave “toon explosion 2”, then it does not work.
I have this structure:
- This reply was modified 8 years, 1 month ago by zxretrosoft.
October 25, 2016 at 8:16 pm #5636
peterigzKeymasterYou need to replace it with whichever effect you want from your library. So if you open up the editor, you will have a list of effects with names, just choose one of those.
eg:
October 26, 2016 at 5:45 am #5637
zxretrosoftParticipant@peterigz
Yes, this is exactly it! Super! Everything is alright.
Thank you very much for your patience! -
AuthorPosts
You must be logged in to reply to this topic.