How do I make an in-game shop?

Get help using Construct 2

Post » Thu Mar 19, 2015 6:32 am

I know how to make all the events concerning the coins and if the player has enough coins to buy the item, but I don't know what the best way is. Is it like to animate it or to make it easier change the whole object itself? Thanks!
B
12
S
3
Posts: 129
Reputation: 1,131

Post » Thu Mar 19, 2015 7:20 am

What exactly are you asking? Your question is very confusing...
Check out my completed games on the Arcade! Capt. Doe Save the Universe! & Clicker Wizard!
B
66
S
17
G
8
Posts: 637
Reputation: 9,370

Post » Thu Mar 19, 2015 12:54 pm

are you talking about In game shop? for buy power ups or something like that?
B
10
S
2
G
1
Posts: 35
Reputation: 691

Post » Thu Mar 19, 2015 4:19 pm

Sorry about that. I don't mean powerups, but changing the sprite's image when the player buys the item. Like changing characters/weapons.
B
12
S
3
Posts: 129
Reputation: 1,131

Post » Fri Mar 20, 2015 12:20 am

It really depends on your visual style for your game, you could do it either way,

In my space shooter (in my sig) my in game shop currently just uses sprites that get color changed to dull color when item is bought.. it fits the "theme" but in my final version I will probably use a nice looking sprite but still dull it out when inactivated.

Its really up to you.

Or are you asking "how" to do this?
Check out my completed games on the Arcade! Capt. Doe Save the Universe! & Clicker Wizard!
B
66
S
17
G
8
Posts: 637
Reputation: 9,370

Post » Fri Mar 20, 2015 1:59 am

Well i was asking both. I used to work with GameSalad so i'm still trying to figure out animations with Construct 2. I'm reading a tutorial on it right now.
B
12
S
3
Posts: 129
Reputation: 1,131

Post » Fri Mar 20, 2015 2:47 am

Animation in Construct2 is pretty straight forward. You either drop in a sprite with multiple frames or you make your own via the in game editor. Either way you control the start/stop/frame/speed etc via event actions,

It shouldn't take you too long to get your head around it.

A simple exercise is open sprite editor (double click layout and select sprite) and color fill the image. Now find the small frames window that opens when editor is open and right click beside "frame 1" and choose "add frame", now color fill this on something different. Repeat until you have about 5 frames of different colors. You can use the animations window (that also pops up when editor open) to save this to a anim file you can call via event if you like. Now with a frame of the sprite selected look at the left side properties area and stop it from playing automatically. These properties control how sprites frames are "stepped through".. aka animated. Now place your cool sprite on the layout and open your event sheet. Add event On start of layout then select your sprite and choose start anim frame 0 and go run program.. voila you made an animated sprite. The principles are the same for any 2d animation outside Spriter type bone animation.
Check out my completed games on the Arcade! Capt. Doe Save the Universe! & Clicker Wizard!
B
66
S
17
G
8
Posts: 637
Reputation: 9,370


Return to How do I....?

Who is online

Users browsing this forum: brunopalermo, R0J0hound, tarek2, trance, yiuyiu6666 and 21 guests