Classic indexed sprite plugin

Discussion and feedback on Construct 2

Post » Fri Jan 23, 2015 12:00 am

Hey everyone, just nerding out at the moment with with some emulator code for the gameboy, and I thought:

How cool would it be to have a ClassicSprite plugin in construct 2?

Basically, it would function as a sprite but also have some neat perks/limitations.

You could set the number of colors (2,4,8,16), Create/import palette data, and assign palettes to the sprite.

The result would be retro, but would allow palette swapping, and palette animations. If one wanted to get super fancy, there could be the master palette that an individual palette refers two. To make a Nintendo game, you would set the palette size to be 4 colors and limit yourself to a total of 8 palettes.

Mostly, since I make pixel art anyway, it would be really cool to have indexed sprites and palette animations on the fly from within construct2. Who knows, it might also come with some performance perks :D
Image
B
33
S
11
G
2
Posts: 564
Reputation: 5,153

Post » Fri Jan 23, 2015 4:42 am

Indexed sprites are the bomb, but if I'm not mistaken trying to do this real time (for html 5) would eat performance for lunch. There is currently a color swap shader, but this would be easier. Perhaps with some sort of intelligent cacheing for non dynamic objects. Would increase memory use a bit, but not lose performance to complex pixel level operations.
B
19
S
6
G
6
Posts: 1,101
Reputation: 5,646

Post » Fri Jan 23, 2015 8:34 am

I would love to see some form of palette cycling. Having the ability to select a certain range of colours in a palette and alter them alone would be very useful.
B
48
S
16
G
9
Posts: 1,097
Reputation: 11,195

Post » Fri Jan 23, 2015 11:32 pm

@somebody - shoot, I didn't think about the performance on browser sort of thing... ya, the whole make this pixel this color at this point thing might wreck performance....

@spongehammer - That is what I want most of all... I just realized making a shader could probably work. you could use certain colors in the sprite to denote index, and then swap those colors out with a selected palette. probably not great to use this effect on everything but I might look into that!

retro pallete webgl shader. :)
Image
B
33
S
11
G
2
Posts: 564
Reputation: 5,153

Post » Mon Mar 02, 2015 8:51 am

I'd love palette swap features, maybe c3 could do this?
B
41
S
12
G
14
Posts: 1,117
Reputation: 11,253

Post » Mon Mar 02, 2015 7:27 pm

Color Cycling would be a dream! Imagine you could have something like this in your games:

http://www.effectgames.com/effect/article.psp.html/joe/Old_School_Color_Cycling_with_HTML5
B
11
S
2
Posts: 213
Reputation: 1,266


Return to Construct 2 General

Who is online

Users browsing this forum: No registered users and 33 guests