Spawn a new object

Get help using Construct 2

Post » Thu Jan 15, 2015 9:00 pm

On collision I spawn a new object. How can I spawn this new object in a specific location (X,Y). I am thinking to make a (blank sprite) and have the new object spawn at that location, but somehow I am not getting it to do that. Any help? thx
B
9
S
2
Posts: 104
Reputation: 1,098

Post » Thu Jan 15, 2015 9:03 pm

Could u post a .capx with what u got so far? Shouldn't be too hard to replicate. But its easier to visualize that way.

Edit: Nvm i made a .capx tell me what u think. Could be done several diff ways. This was the quickest I could think of.
You do not have the required permissions to view the files attached to this post.
Last edited by david7457 on Thu Jan 15, 2015 9:14 pm, edited 1 time in total.
B
8
S
2
G
1
Posts: 96
Reputation: 782

Post » Thu Jan 15, 2015 9:07 pm

does it have to be spawned? or could you simply object --> on collision with object = system --> create object @ x,y
Need Sprites For Your Next Project?
100% Vector Animated Sprites
B
8
S
2
Posts: 170
Reputation: 1,086

Post » Thu Jan 15, 2015 9:15 pm

I just need to exist in the Layout.. I can be outside the layout if you want. Yer use System --> Create Object @ NameofObjecttospawnto.X , NameofObjecttospawnto.Y

Edit: Like in the .capx I made
B
8
S
2
G
1
Posts: 96
Reputation: 782

Post » Thu Jan 15, 2015 10:59 pm

that's perfect. I will use on touch (mobile game) but same basic idea. thanks.
B
9
S
2
Posts: 104
Reputation: 1,098

Post » Thu Jan 15, 2015 11:10 pm

Np
B
8
S
2
G
1
Posts: 96
Reputation: 782


Return to How do I....?

Who is online

Users browsing this forum: No registered users and 8 guests