[PLUGIN]Unique Sprite(no anim,uniqe image per inst

Post and try out addons that are currently in development.

Post » Fri Jun 17, 2011 12:53 am

I want battle test this a little before I put it in completed add-ons, if it ever goes there at all

this is all barebones, as I just made it for personal use, and I didn't implement several sprite features, but it may be useful as is to someone else as is, as well.
it's just a modified sprite plugin that allows you to have a different image for each instance of the sprite. as of now it doesn't even let you change each instance in the editor, but you can load the frames at runtime.   i didn't make it work with animations either.
I haven't tested it with changing layouts, so if someone else cares to, let me know how it goes. I don't think that'll work either tho, without reloading the frame info. the part of the code that'd do that tho is shared with something I changed so it might work, if not, and someone really needs that feature, let me know, i can probably add that really easily

download here(including rojohound's update)

in case you're wondering what use this might serve, it's for editors, where you need to load frames in the editor, and then again when the level, or whatever is loaded in game, and you don't know how beforehand how many different images will be neededlucid2013-07-12 12:54:11
Spriter Dev
B
87
S
21
G
12
Posts: 3,240
Reputation: 16,461

Post » Fri Jun 17, 2011 4:57 am

Kinda cool, although Tiled bg pretty much does the same thing.
On the other hand, even though animations are disabled you can, in theory, make an animation by controlling frames via events. But that still depends on you having frames available to load to.
Now if you were to figure out a way to add frames on the fly, that would be interesting.
Image Image
B
161
S
48
G
90
Posts: 7,356
Reputation: 66,767

Post » Fri Jun 17, 2011 5:09 am

ahh, what a shame. thought it would be animated tiled bg i was dreaming of for so long...
B
16
S
5
G
4
Posts: 211
Reputation: 3,767

Post » Fri Jun 17, 2011 5:22 am

oh, i didn't know tiled bg could do that. I wouldn't have bothered. I'll take a look at adding that feature. I didn't realize it was in demand. it might not be too bad.
Spriter Dev
B
87
S
21
G
12
Posts: 3,240
Reputation: 16,461

Post » Fri Jun 17, 2011 5:43 am

[quote="The_Funny_Guy":2d9b0cvb]ahh, what a shame. thought it would be animated tiled bg i was dreaming of for so long...[/quote:2d9b0cvb]

You can do that using a sprite distortmap setting U&V to tile. No collisions of course.

[quote="lucid":2d9b0cvb]oh, i didn't know tiled bg could do that. I wouldn't have bothered. I'll take a look at adding that feature. I didn't realize it was in demand. it might not be too bad.[/quote:2d9b0cvb]

That would be the precursor to using external animations.
Almost a must have for online muliplayer.
Image Image
B
161
S
48
G
90
Posts: 7,356
Reputation: 66,767

Post » Fri Jun 17, 2011 9:09 am

[quote:i6cwbxib]You can do that using a sprite distortmap setting U&V to tile. No collisions of course.[/quote:i6cwbxib]
thats very interesting. Sadly i don know what U&V or distortmap means :)
could you explain or make a tutorial?
i was thinking about background that endlessly scroll, or is looped in animation.
that would be very handy
B
16
S
5
G
4
Posts: 211
Reputation: 3,767

Post » Fri Jun 17, 2011 12:07 pm

Does this plugin allow multiple frames for each instance ?

---------------------------------------------------------------------------------------------
[quote="The_Funny_Guy":2tdyxs15][quote:2tdyxs15]You can do that using a sprite distortmap setting U&V to tile. No collisions of course.[/quote:2tdyxs15]
thats very interesting. Sadly i don know what U&V or distortmap means :)
could you explain or make a tutorial?
i was thinking about background that endlessly scroll, or is looped in animation.
that would be very handy[/quote:2tdyxs15]
----------------------------------------------------------------------------------------------

Dravenx posted something about animating a tiled background :

'TiledBackground Scrolling Example with Changing backgrounds'

[url:2tdyxs15]http://www.scirra.com/forum/viewtopic.php?f=8&t=8538&p=75726#p75726[/url:2tdyxs15]
B
19
S
6
G
7
Posts: 1,206
Reputation: 7,300

Post » Fri Jun 17, 2011 1:18 pm

[quote:2f7y6l5d]Dravenx posted something about animating a tiled background :

'TiledBackground Scrolling Example with Changing backgrounds'

viewtopic.php?f=8&t=8538&p=75726#p75726[/quote:2f7y6l5d]
oh indeed! thank you kindly!
B
16
S
5
G
4
Posts: 211
Reputation: 3,767

Post » Sun Jun 19, 2011 12:15 pm

How difficult would it be to add support for animations? Because if that was possible this could be very useful for fighter games and other games where you can play different characters.
B
73
S
20
G
10
Posts: 524
Reputation: 9,896

Post » Sun Jun 19, 2011 3:17 pm

Thank you so much for sharing this lucid! It's insanely useful for level editors indeed.
B
21
S
6
G
10
Posts: 1,024
Reputation: 7,445

Next

Return to Work-in-progress addons

Who is online

Users browsing this forum: No registered users and 0 guests