Spawning other Objects

Get help using Construct 2

Post » Wed Jun 19, 2013 6:23 pm

Hey you,

I am trying to spawn an animation in front of the player. A slash animation to be precise. But the only locations I can use are imagepoints that are already set on the player.

Is there a way to spawn the slash at imagepoint 1 + 40 pixels, or something like that?

Thank You,
Stephen

B
56
S
15
G
13
Posts: 826
Reputation: 17,675

Post » Wed Jun 19, 2013 6:34 pm

Yeah, use "System -> Create Object" instead of selecting the player object and using the spawn action.

Then you just set "sprplayer.X + 40" to position it based off the origin, or "sprplayer(1).X + 40" to position based off imagepoint 1.Nimtrix2013-06-19 18:35:37
B
27
S
8
G
8
Posts: 903
Reputation: 8,452

Post » Wed Jun 19, 2013 8:11 pm

Tested and works. Thank you @Nimtrix
B
56
S
15
G
13
Posts: 826
Reputation: 17,675


Return to How do I....?

Who is online

Users browsing this forum: kainrazial and 21 guests