# Facing Help

Get help using Construct 2

### » Tue Nov 27, 2012 1:53 am

Hi Guys,

I am creating some asteroids for my space shooter, and i was wondering about facing while moving. It seems every time i change the angle, it change by itself to 90 because the object its heading that way:

System > Every X Second: System > Create Asteroid on layer .....
asteroid > Set Angle to 90 Degrees

So by having Angle to 90 degrees and speed the asteroid will move to bottom from his spawn position. My question is how to changie his facing to a random(x,y) position while having his direction unchanged.

Thanks
B
32
S
5
G
1
Posts: 125
Reputation: 3,298

### » Tue Nov 27, 2012 4:31 am

You mean like this ?
Using R248 for all examples
B
70
S
21
G
6
Posts: 382
Reputation: 9,812

### » Tue Nov 27, 2012 4:41 am

i see u got 110 version, i am using free version(108) for now until December.
B
32
S
5
G
1
Posts: 125
Reputation: 3,298

### » Tue Nov 27, 2012 5:35 am

Print screen to the rescue

Just note the arrow box has been given the bullet behaviour with the following characteristics
Speed : 400
Acceleration : 0
Graity : 0
Bounce Off : No
Set Angel : No

Also it has the instance variable of a number called Rotatiom (that's an intentional typo)
Using R248 for all examples
B
70
S
21
G
6
Posts: 382
Reputation: 9,812

### » Tue Nov 27, 2012 11:43 am

Thanks for trying to help, but it seems its happens the same, this time the object moves to 360, check the enemy group:

I managed to make a object rotate while moving with Rotate and Move forward. But still i have problems with facing.

I want to spawn object outside the screen, apply a random facing, move it to a direction. But every time i do this, the object faces the path he is goin to.

http://mmorpg-center.com/cc2stuff/shooty.capxlwgames2012-11-27 12:33:13
B
32
S
5
G
1
Posts: 125
Reputation: 3,298

### » Tue Nov 27, 2012 12:43 pm

set rotationm to random(360) you forgot the random
B
72
S
22
G
7
Posts: 830
Reputation: 10,214

### Who is online

Users browsing this forum: No registered users and 3 guests