Dropping icicle

Get help using Construct 2

Post » Sat Jan 12, 2013 7:15 am

I wanted an icicle drop from the icicle object every so many seconds. It drops however.. in the wrong direction. It goes right at an angle.

tyler58192013-01-12 07:16:26
B
6
S
1
Posts: 28
Reputation: 856

Post » Sat Jan 12, 2013 7:46 am

First of all, why there's "wait" action after spawn?
Second, what behavior do you use for icicle_bullet's movement?
Most probably, right after spawning, you'd want to set the object's angle to 90 as objects spawn turned in the right direction by default, so if you want it to go down, the angle is 90 (up = -90, left = 180, rotating clockwise).
Hope that helps.
B
81
S
50
G
10
Posts: 555
Reputation: 13,009

Post » Sat Jan 12, 2013 7:05 pm

Still goes in the same direction... The icicle has a bullet inside of it.
http://i.imgur.com/5hqV4.png

http://i.imgur.com/fDvZ5.png

I can't embed photo's in replies?
B
6
S
1
Posts: 28
Reputation: 856

Post » Sat Jan 12, 2013 7:26 pm

Well now they spawn directly below the icicle block like they're suppose to. But they just go right like you said. Changing the angle of motion doesn't seem to help much.
B
6
S
1
Posts: 28
Reputation: 856

Post » Sat Jan 12, 2013 8:04 pm

Try moving the line where you are setting the bullet angle after the line where you spawn the icicle_bullet. It's probably setting an angle on an object that doesn't actually exist yet.
B
24
S
4
G
1
Posts: 244
Reputation: 3,462

Post » Sat Jan 12, 2013 8:13 pm

Both ways.. no difference.
B
6
S
1
Posts: 28
Reputation: 856

Post » Sat Jan 12, 2013 8:23 pm

mmmm, bit of a long shot here, but try clicking on the icicle_bullet object in the project list (so that it selects all instances of the bullet) and set the bullet behaviour "Set Angle" to "No". I did a quick test here and that seemed to fix it.

Failing that, do you mind posting your capx to dropbox?boolean2013-01-12 20:27:02
B
24
S
4
G
1
Posts: 244
Reputation: 3,462

Post » Sun Jan 13, 2013 5:22 am

Yes that fixed it! Thank you so much for your time testing your own. Yes, next time I'll post the capx to make things easier.
B
6
S
1
Posts: 28
Reputation: 856

Post » Wed Jan 16, 2013 10:33 am

Yes, next time I'll post the capx to make things easier.












_____________________________________________________
http://www.mmoggg.de/
B
2
Posts: 3
Reputation: 406


Return to How do I....?

Who is online

Users browsing this forum: Magistross and 1 guest