rotate sprite during run time

Get help using Construct 2

Post » Tue Nov 19, 2013 2:34 am

hi everyone, in my game i have some sprites with the bullet attribute that i spawn at some intervals from top and bottom on the screen however this sprites maintain their angle when spawn, but i would like the images to always be at 90 degrees in both direction(that is always upright). how can i achieve this.
thanks
here is a capx file explaining what i mean.
sprite rotate
B
15
S
4
Posts: 138
Reputation: 2,003

Post » Tue Nov 19, 2013 3:27 am

Don't rotate black objetcs, it can relate to spawned objects with its own angle.

In bullet behavior, change "Set Angle" -> "Yes" to "No"

and add some actions when bullet objects are spawned
Set Angle of Motion, 90 (-90 goes top)

B
97
S
35
G
29
Posts: 3,139
Reputation: 28,361

Post » Tue Nov 19, 2013 10:02 am

@joannesalfa, thanks a lot, concept works well, needed to tweek some other things though, but wasn't hard to figure out
B
15
S
4
Posts: 138
Reputation: 2,003


Return to How do I....?

Who is online

Users browsing this forum: Syazanie Amirin and 12 guests