Problem With Creating Smaller Asteroid Bullets

Get help using Construct 2

Post » Wed Feb 13, 2013 5:04 pm

Problem With Creating Smaller Asteroid Bullets

Hi,

I am making a classic Asteroids game remake.
I am at a point of blowing up larger asteroids and creating smaller ones.
Please look at this developer screenshot and tell me what is wrong:

The two smaller asteroids are created,
but their direction of movement is not random?
Hope you can help, thanks!

JeZ+Lee
B
11
S
3
G
4
Posts: 105
Reputation: 2,950

Post » Wed Feb 13, 2013 5:43 pm

Is the speed correct ?

I can't see anything wrong with those events...
B
62
S
26
G
24
Posts: 954
Reputation: 18,318

Post » Wed Feb 13, 2013 6:14 pm

I remember having issues with a very similar procedure in my project. In the end I split it up into a main event and a sub-event:




The wait 0.1 seconds is there to allow the sub-events to run and use the asteroid as a spawner before its destroyed.
B
57
S
15
G
11
Posts: 912
Reputation: 12,596

Post » Wed Feb 13, 2013 7:18 pm

Looks like you only have random (360) did you try random (1,360) ?
B
28
S
8
G
4
Posts: 767
Reputation: 5,960

Post » Wed Feb 13, 2013 9:19 pm

Is it "angle of motion" or just the angle the asteroid is facing that should be set ?
August 2015 - I misplaced a lot of links - I will try to find backups and repost. If You find a post that interests please reply to post with @rampackwobble and I will get a nudge!

If you find my posts useful please consider donating something to a local charity or to the http://www.mndassociation.org/
B
64
S
33
G
47
Posts: 1,194
Reputation: 30,782

Post » Wed Feb 13, 2013 9:20 pm

[QUOTE=RamPackWobble] Is it "angle of motion" or just the angle the asteroid is facing that should be set ?[/QUOTE]Hi,

Angle of motion is what I am trying to set...

JeZ+Lee
B
11
S
3
G
4
Posts: 105
Reputation: 2,950

Post » Wed Feb 13, 2013 9:42 pm

Hi,

I've uploaded the project at the following URL address:
http://16bitsoft.com/V2/Files/RocksInSpace/Alpha3/RocksInSpace_Alpha3.capx
Can someone have a quick look
and tell my why the smaller asteroids
don't move in random directions?

Thanks!

JeZ+Lee
B
11
S
3
G
4
Posts: 105
Reputation: 2,950

Post » Wed Feb 13, 2013 10:13 pm

Here is a fixed capx that gives random direction: http://lewispcservice.com/downloads/RocksInSpace_Alpha3-Fixed.capx

I changed your random motion lines to be set to random(360) for Angle:Set angle

wslewis722013-02-13 22:14:43
B
7
S
1
Posts: 14
Reputation: 631

Post » Wed Feb 13, 2013 10:16 pm

[QUOTE=wslewis72] Here is a fixed capx that gives random direction: http://lewispcservice.com/downloads/RocksInSpace_Alpha3-Fixed.capx

I changed your random motion lines to be set to random(360) for Angle:Set angle[/QUOTE]Hi,

You fixed my problem!
Thank you!
Now I can continue with development...

JeZ+Lee
B
11
S
3
G
4
Posts: 105
Reputation: 2,950

Post » Wed Feb 13, 2013 10:17 pm

No problem....not bad for a noob like myself :)

I also added the wrap for your medium and small asteroidswslewis722013-02-13 22:19:02
B
7
S
1
Posts: 14
Reputation: 631

Next

Return to How do I....?

Who is online

Users browsing this forum: MAD4R4, repkino, Sumyjkl and 10 guests