2 questions

Get help using Construct 2

Post » Wed Mar 20, 2013 7:42 pm

Hello.
Dear friends please help
I have 2 questions

1st .

How can I upload Image and same parameters from folder to game whit "xml" (each level) .

2nd

How can I split this image in "n" parts

and have image parts ID .

like this



Thank you ....
Asatur2013-03-20 19:43:47
B
13
S
3
G
3
Posts: 28
Reputation: 2,798

Post » Sat Apr 13, 2013 6:35 pm

The first question I'm afraid I don't understand.
For the second, I would split the image in an external image editor in 9 pieces, and upload those as frames of a single animation of a sprite.
Then each instance would have a different "Initial frame" from the animation (make sure to set the animation speed to 0).
New to Construct ? Where to start

Image Image
Image Image

Please attach a capx to any help request or bug report !
Moderator
B
247
S
85
G
40
Posts: 7,000
Reputation: 57,795

Post » Wed Apr 17, 2013 6:01 pm

@Asatur Do you need to do this programatically?
B
14
S
4
G
2
Posts: 190
Reputation: 3,938

Post » Wed Apr 17, 2013 7:20 pm

@beufreecasse Yes :) becouse I have more than 50 pics.. and this pics load from url random.
B
13
S
3
G
3
Posts: 28
Reputation: 2,798

Post » Wed Apr 17, 2013 8:58 pm

@Asatur
I couldn't find a way to split a sprite in 9 parts in C2 but may be you could do it manually then load each part of the image with the load image from url action(on Sprite) and randomize the image part you are loading with array

Example - Your first image :
Image1Part1.png
Image1Part2.png
Image1Part3...
B
14
S
4
G
2
Posts: 190
Reputation: 3,938

Post » Thu Apr 18, 2013 12:25 pm

Yes
in my program I split manually, then I have one Sprite which have "n" Animations (All Pictures) and each animation have 9 frame .

I loading x Animation whit random animation frame
B
13
S
3
G
3
Posts: 28
Reputation: 2,798


Return to How do I....?

Who is online

Users browsing this forum: Vallar, Yahoo [Bot] and 17 guests