How do I Insert More than one sprite at a time?

Get help using Construct 2

Post » Tue Jan 19, 2016 6:32 am

Hello,

I am making a game with many levels and as a result have created a set of about 40 detailed numbered button images for the menu. How do I insert these all at once instead of having to meticulously insert them one at a time?

Thanks,

William
B
8
Posts: 25
Reputation: 356

Post » Tue Jan 19, 2016 4:53 pm

A for loop will work, like:

Sprite: Set Animation Speed: 0

For "loopindex" from 0 to 40:
Create Sprite: X= 100; Y=50*loopindex + 10
Sprite: Set frame: loopindex

Make sure your buttons are all on the same sprite as independent animation frames
https://www.ravenheart.ca/home
I don't check the forums much anymore, but I will receive an email for PMs.

"Someone once told me I bite off more than I can chew...

I told them I would rather choke on greatness than nibble on mediocrity."
B
23
S
6
G
1
Posts: 1,419
Reputation: 4,857


Return to How do I....?

Who is online

Users browsing this forum: No registered users and 9 guests