How do I Make multiple images one sprite

Get help using Construct 2

Post » Tue May 19, 2015 9:13 pm

The name's a little bit misleading but I'm not sure how to word this. I have an enemy that I want to spawn as one image then separate into 2 separate enemies. They don't have to be connected or anything but I want them to spawn and look like one image before they each start doing there own thing
B
22
S
8
Posts: 203
Reputation: 2,059

Post » Tue May 19, 2015 9:28 pm

And what is the problem?

You can create two different objects in one event..
for example:

on left mouse button clicked
> create enemy1 at x=100, y=100
> create enemy2 at x=100, y=100

You might want to pin them to another sprite and have the movement actions on that sprite first and after a certain amount of time (timer behaviour?) seperate the events for the two different enemies to split them..
I told my dentist I had trouble with my teeth and asked her to fix it without looking in my mouth..
B
54
S
16
G
8
Posts: 6,160
Reputation: 19,775

Post » Tue May 19, 2015 9:31 pm

Well it's not one image on top of the other, imagine like the point of a triangle coming off and being a different sprite or something like that
B
22
S
8
Posts: 203
Reputation: 2,059

Post » Tue May 19, 2015 9:37 pm

Yeah, so you should create the second object relative to the first?

something like:
create enemy1 at 200,200
create enemy2 at enemy1.x+15, enemy1.y-30
I told my dentist I had trouble with my teeth and asked her to fix it without looking in my mouth..
B
54
S
16
G
8
Posts: 6,160
Reputation: 19,775

Post » Tue May 19, 2015 10:01 pm

hmmm ok I'll try that
B
22
S
8
Posts: 203
Reputation: 2,059

Post » Tue May 19, 2015 10:03 pm

Or add a imagepoint on enemy1 where the origin of enemy2 should be and let enemy1 spawn enemy2 at that imagepoint..
I told my dentist I had trouble with my teeth and asked her to fix it without looking in my mouth..
B
54
S
16
G
8
Posts: 6,160
Reputation: 19,775


Return to How do I....?

Who is online

Users browsing this forum: richardfu and 27 guests