Save and load image (sprite) into an array

Get help using Construct 2

Post » Wed Sep 18, 2013 4:39 am

I'm now making a Guess the Picture quiz game using Construct 2. Let's say I will have 50 questions with 3 answers each (1 right answer and 2 wrong answers). Then, each question will have a sprite (.png) image. If this game will use 2D array:

[ID][SpriteImage][Quest][Answer1][Answer2][Answer3].

The ID is used to identify each line of array so I could randomize the questions.

The problem:

1. How to save and load the spriteImage into an array.

2. After loading the spriteImage, how to cut it into an animation.

3. How to identify those 3 answers, which is the right one and which are the wrong ones while all of them are stored into the array.

Thank you for your attention and time.ngfajar2013-09-18 04:39:40
B
2
Posts: 1
Reputation: 152

Post » Wed Oct 09, 2013 9:36 am

Hi there
Thanks for your question.Actually i've never save and load the spriteImage into an array.But i often save image or http://www.rasteredge.com/how-to/csharp-imaging/load-from-file/ using an image SDK.It's easy and effective.Maybe you can take a look.Hope to help you.
B
2
Posts: 2
Reputation: 154


Return to How do I....?

Who is online

Users browsing this forum: No registered users and 6 guests