How do I change object style. +start game faster

Get help using Construct 2

Post » Sun Mar 22, 2015 12:29 pm

Hello,
I am making a game with a ball and i would want to make a change ball menu, where you could buy or earn new ball styles (new colours, forms... etc)
How can i make this without using a lot of memory.
I was thinking about a animation, but I thinks it takes a lot of memory.
For example:
If you but x , => ball set animation x
anyway to do this without animatons?
And:
How do I make on start of the game not to load all layouts and theyr objects (almost 100 layouts) and yo load just the start menu layout and when you press "Start" than to load them.
Is there a way?
I just want to start the game faster.
Thank You.
B
10
S
3
Posts: 264
Reputation: 1,344

Post » Mon Mar 23, 2015 1:06 am

I would think that having multiple animations might make the code cleaner, unless you are going to families instead.

But having a menu where you select the ball you want to use from those you have earned/bought would be the easiest way I'd say, an then either have it set a global variable that references a particular animation or sprite in the family to display.

As for the start of the game, it may come down to how you have designed the game. Depending on how it is made, you could store each level as a text file then read them in and have the game set them up accordingly (using arrays and setfromJSON expression)
Using R243 for all examples
B
66
S
20
G
6
Posts: 369
Reputation: 9,604

Post » Tue Mar 24, 2015 3:21 pm

@emoaeden OK thanks for help
B
10
S
3
Posts: 264
Reputation: 1,344


Return to How do I....?