Welcome Guest! To enable all features please Login or Register.

Notification

Icon
Error

Options
Go to last post Go to first unread
Offline internetfreak  
#1 Posted : Thursday, December 5, 2013 11:25:06 PM(UTC)
internetfreak

Joined: 12/19/2011(UTC)
Posts: 529

Thanks: 10 times
Was thanked: 16 time(s) in 15 post(s)
Hi,
I like your idea to automatically build an animation based on numerated content files with the same name but is there any way to disable it?
The thing is, I have an own animation class so your mechanism is not really needed and caused me some small problems because one time I had only files in my content folder whose names were only built with digits, so the animeation name was empty and the result was an exception.
Now I use files with real names but I still don't need this feature so I want to disable it.

I hope there's any way without modifiying any delta engine class, that means I don't want to make any subclasses only to achieve that (in that case I rather live with it since it doesn't cause any real harm, it's only something I don't need)

Greets
internetfreak
Mein Blog: www.internetfreak.net

- Inoffizieller DeltaEngine-Supporter und Tutorialschreiber -

Wanna join the discussion?! Login to your forum accountregister a new account. Or Connect via Facebook Twitter Google

Offline Benjamin  
#2 Posted : Saturday, December 7, 2013 5:17:52 AM(UTC)
Benjamin

Medals: Admin

Joined: 8/20/2011(UTC)
Posts: 1,421
Location: Hannover

Thanks: 18 times
Was thanked: 97 time(s) in 92 post(s)
Not sure what you mean. Probably when you use DiskContentLoader and have some images in your folder like Explosion01, Explosion02, etc. then it creates an ImageAnimation named "Explosion", which you can use to have an animated image. About an exception when you had some image names in your Content folder, please report it (copy+paste it here) so we can fix it. Probably just a small issue when there is just numbers, no name in front of it. Notice that the DiskContentLoader is not used normally (Online content from the Editor is used by default).

This does however not mean you cannot use Explosion01, etc. as normal image content. Do you have a problem using the Material constructor (which works with either image names or animation names)? If so, point us to some code so we can help figuring it out.
Offline internetfreak  
#3 Posted : Saturday, December 7, 2013 5:35:10 PM(UTC)
internetfreak

Joined: 12/19/2011(UTC)
Posts: 529

Thanks: 10 times
Was thanked: 16 time(s) in 15 post(s)
I don't really have a problem since the content is useable, even the Material-Constructor works with the content (I specify the whole content name so it cannot use the animation since the animation does not have any number in it)
What I want is to say that no animations should get generated if I use content with ascending numbers because I already have an animation class which works like I want it.
My animation files are named char-1-1, char-1-2 and so on since I used an sprite cutter to cut a spritesheet into single files and char was the base name (I don't have any real name for the files atm so I just used some dummy names)
About the error: At that time, I used another sprite slicing tool which only produced files like 0.png, 1.png etc so the content name was empty and I got an exception because of that.
About the ContentLoader: I only use it as I didn't move my project yet to onine content, the only place where I really will use the DiskContentLoader is my editor because online content is not suitable for that case as I also have to deal with user provided content which directly comes from the disk.

I hope this clears the questions, sorry if it's not understandable well but I wanted to write this answer now as I have to go and I didn't want to forget what I want to say :)
Mein Blog: www.internetfreak.net

- Inoffizieller DeltaEngine-Supporter und Tutorialschreiber -
Rss Feed  Atom Feed
Users browsing this topic
OceanSpiders 2.0
Forum Jump  
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.

Powered by YAF.NET | YAF.NET © 2003-2020, Yet Another Forum.NET
This page was generated in 0.045 seconds.