How do I spawn an object away from another object?

Get help using Construct 2

Post » Wed Dec 10, 2014 9:41 am

Hello,

My question didn't really fit in the title, my full question would be:
How do I spawn an object at a specific distance away from another object? Say, 1000 pixels away?

I already know how to spawn an object at a specific position in X and Y coordinates, but I wanted to know how to spawn an object at a certain distance.

Is this thing possible?
B
10
S
2
Posts: 25
Reputation: 719

Post » Wed Dec 10, 2014 9:43 am

Just to clarify, the distance of 1000 pixels away, applies to the objects radius, not just at X or Y.
B
10
S
2
Posts: 25
Reputation: 719

Post » Wed Dec 10, 2014 9:47 am

You could set your Spawner Sprite's Image Point 1000 pixels away from it.
B
5
Posts: 17
Reputation: 259

Post » Wed Dec 10, 2014 10:14 am

g3xas wrote:Is this thing possible?


Sounds like something that should be possible :D

Anyway try this.
You do not have the required permissions to view the files attached to this post.
B
24
S
9
G
4
Posts: 1,646
Reputation: 6,596

Post » Wed Dec 10, 2014 10:20 am

Thanks @JamesQpurcell

That's actually a pretty neat cheat. It served as a quick-fix to what I was trying to do. :)
B
10
S
2
Posts: 25
Reputation: 719

Post » Wed Dec 10, 2014 10:23 am

Thanks @codah

Will test out your solution as soon as I update C2! :)
B
10
S
2
Posts: 25
Reputation: 719


Return to How do I....?

Who is online

Users browsing this forum: Google [Bot] and 7 guests