Sprites and Loading External Images

New releases and general discussions.

Post » Sat Dec 19, 2009 3:53 pm

So, I just found out that different copies of the same sprite object cannot load up different images. Since this is crucial to my game, is it possible for someone to make a plugin that can do this?

Thanks
Follow me on Twitter @evgLabs
B
33
S
14
G
4
Posts: 251
Reputation: 4,049

Post » Sat Dec 19, 2009 5:09 pm

Use a different frame perhaps?
Image Image
B
161
S
48
G
90
Posts: 7,347
Reputation: 66,749

Post » Sat Dec 19, 2009 5:43 pm

How can I do that? I need to load external PNGs. How do I load one to a specific frame?
Follow me on Twitter @evgLabs
B
33
S
14
G
4
Posts: 251
Reputation: 4,049

Post » Sat Dec 19, 2009 5:46 pm

The current frame of the animation is the one where the animation is loaded to. So if you set the animation frame before loading the image, you can load multiple images into one object. However, this requires you to have as many blank frames as necessary to load up all of your images.

My game makes heavy use of this method, so I might take a crack at making a plugin to simplify it.
Moderator
B
98
S
37
G
19
Posts: 1,584
Reputation: 17,817

Post » Sat Dec 19, 2009 6:13 pm

Thanks for the information! I didn't know that. I might be able to make that work, but a plugin would be great! Because I don't really have the ability to say HOW many pictures there are going to be.

But again, thanks for the information.
Follow me on Twitter @evgLabs
B
33
S
14
G
4
Posts: 251
Reputation: 4,049

Post » Sun Dec 20, 2009 1:08 am

For the devs on this note. Is it possible to add frames at runtime through the SDK. So if I wanted to mod the sprite object to do this is it possible?
B
5
S
2
G
4
Posts: 632
Reputation: 2,829

Post » Sun Dec 20, 2009 5:05 am

If you do, are you going to add a way to import frame rates? Oh heck if your gonna do that you might as well come up with a file type that you can store all the images in. Ok probably not, but um yeah, it would be a nice addition. :P
Image Image
B
161
S
48
G
90
Posts: 7,347
Reputation: 66,749

Post » Sun Dec 20, 2009 5:23 am

im not sure If I can make my own file type but ill set up my big rig tomorrow and see what I can get done on it Im snowed in ATM and a plugin like this would REALLY allow construct to become more of a multiple person project tool. It would almost allow for an integration of an art pipeline. however it would make it require an installer. Its likely that the first integration of this modified plugin would allow only for loading of individual files.
B
5
S
2
G
4
Posts: 632
Reputation: 2,829

Post » Sun Dec 20, 2009 5:40 am

[quote="Aeal5566":a2m1n2no]im not sure If I can make my own file type but ill set up my big rig tomorrow and see what I can get done on it Im snowed in ATM and a plugin like this would REALLY allow construct to become more of a multiple person project tool. It would almost allow for an integration of an art pipeline. however it would make it require an installer. Its likely that the first integration of this modified plugin would allow only for loading of individual files.[/quote:a2m1n2no]

Bah, no fair, we've barely any snow here :P

I'd agree an installer and a way to properly use external files in general would be nice to have, and very handy for, as you say, multiuser development, or if you want to update things at a later date or offer patches but don't want a user downloading a huge executable each time. And to have them in some kind of package file, even if it's just the regular zip, like many other games often do now. But from what I've seen when it's been requested, it's probably a ways off if it's going to happen.
B
3
S
2
G
3
Posts: 628
Reputation: 2,531

Post » Sun Dec 20, 2009 3:29 pm

[quote="Lost my Keys":xt5l35do]But from what I've seen when it's been requested, it's probably a ways off if it's going to happen.[/quote:xt5l35do]

Its an open source project. The sprite plugin is on the SVN. If its possible I could just down load it and program the feature my self.
B
5
S
2
G
4
Posts: 632
Reputation: 2,829

Next

Return to Construct Classic Discussion

Who is online

Users browsing this forum: No registered users and 3 guests