Skin system

Get help using Construct 2

Post » Fri Jan 24, 2014 5:54 pm

Hi! I'm making an infinite runner game, so I decided to make some store with upgrades and visual skins for the player...But I have no idea of making skin system! I mean that I don't know how to make skin replace standart sprite when player chooses it, cos there is no button "replace sprite" )) I thought about using different animations for each skin but on the one object. I need some professional advice! Thanks in advance!
B
5
Posts: 16
Reputation: 287

Post » Fri Jan 24, 2014 10:15 pm

You can possibly destroy the old sprite and create the new one in the same position?

Edit: Or create an animation frame of all the skins and just change the frame depending on what skin you want.novs122014-01-24 22:16:22
B
4
Posts: 14
Reputation: 228

Post » Sat Jan 25, 2014 12:54 am

How its done is my game is there is a variale
"skin"
Its default is 0

Oh This is too hard to explain, let me make you an example, make things much easier...
B
8
S
1
Posts: 62
Reputation: 627

Post » Sat Jan 25, 2014 1:04 am

Forget it,

On click buy
If cash is 100 or above

Skin = 1

If skin = 1
Animation = bought1

Very simple!
B
8
S
1
Posts: 62
Reputation: 627

Post » Sat Jan 25, 2014 1:05 am

Now just make an animation Bought1 with the new look you want
B
8
S
1
Posts: 62
Reputation: 627

Post » Sat Jan 25, 2014 1:35 am

Your idea of using different animations on the same sprite is the way to go in most cases.
B
60
S
20
G
56
Posts: 1,077
Reputation: 35,941

Post » Sat Jan 25, 2014 8:34 am

Thanks! I'll try using some variables with animations
B
5
Posts: 16
Reputation: 287


Return to How do I....?

Who is online

Users browsing this forum: adamebastin, Bro7hers, marcinkowski, plinkie and 9 guests