How do I Spawn an object at a distance from another?

Get help using Construct 2

Post » Sun Jul 12, 2015 8:53 am

Hi
So at the moment I'm making a game where 2 long rectangular blocks go up the screen. The aim is to go through the gap (where the two blocks don't meet). I have got the blocks spawning nicely and they go up the screen together randomly along the x axis. My only trouble is the gap in which you fall in changes in size. I want to keep the gap the same size so I was wondering if there was a way to do this.
Help will be appreciated!
thanks in advance!!!!
B
5
S
1
Posts: 37
Reputation: 463

Post » Sun Jul 12, 2015 9:05 am

should be as easy as

- object1 on created
> system create object2 at x= object1.x+200 ; y=object1.y

200 should be changed to whatever distance you'd like..
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 » Sun Jul 12, 2015 10:36 am

Thank you so much LittleStain, this worked perfectly. :)
B
5
S
1
Posts: 37
Reputation: 463


Return to How do I....?

Who is online

Users browsing this forum: dop2000, WanderingHatred and 9 guests