Facing Help

Get help using Construct 2

Post » 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
Image
B
29
S
5
G
1
Posts: 125
Reputation: 3,174

Post » Tue Nov 27, 2012 4:31 am

You mean like this ?
Using R238 for all examples
B
60
S
17
G
6
Posts: 363
Reputation: 9,125

Post » Tue Nov 27, 2012 4:41 am

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

Post » 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 R238 for all examples
B
60
S
17
G
6
Posts: 363
Reputation: 9,125

Post » 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
Image
B
29
S
5
G
1
Posts: 125
Reputation: 3,174

Post » Tue Nov 27, 2012 12:43 pm

set rotationm to random(360) you forgot the random
ImageImage
B
61
S
19
G
6
Posts: 809
Reputation: 9,028


Return to How do I....?

Who is online

Users browsing this forum: No registered users and 27 guests