How do I Get a Object to Fly in an Arc and Rotate a Bullet?

Get help using Construct 2

Post » Sat Sep 03, 2016 7:10 pm

Two Part Question, since I didn't wanna make multiple post.

- Question 1:

How do you get an object (in this case a 'Fish' sprite) to fly in an arc? Tried searching a few topics here, but didn't find any that helped. Here's a pic to describe what I want it to do:


http://i.imgur.com/hI2BRxt


I use a sine function to make the fish 'jump' out of the water and fall back in. It also rotates while moving.

- Question 2:

How do you get a 'Bullet' object rotate after it is fired from a turret? Everytime I add a 'rotate' behavior to the 'Bullet' object, it just rotates in an odd fashion. I will try to post a pic of the event code to show what I'm doing with it.
B
13
S
1
Posts: 63
Reputation: 719

Post » Sat Sep 03, 2016 9:51 pm

For 1, try giving it Bullet behavior and adjusting the Gravity parameter.

For 2, I'm not sure what result you're after... Do you want the projectile to spin while it flies, or do you want the bullet's path to curve? If you set the Bullet behavior parameter Set Angle to No, then it should spin but its course will be unchanged. If you set it to Yes, changing its angle will also change its angle of motion.
B
52
S
24
G
18
Posts: 295
Reputation: 13,090

Post » Tue Sep 13, 2016 9:40 pm

Sup with that? wrote:For 1, try giving it Bullet behavior and adjusting the Gravity parameter.

For 2, I'm not sure what result you're after... Do you want the projectile to spin while it flies, or do you want the bullet's path to curve? If you set the Bullet behavior parameter Set Angle to No, then it should spin but its course will be unchanged. If you set it to Yes, changing its angle will also change its angle of motion.


Sorry for the delay (been busy as hell), but I will try the 'Gravity' advice for the 1st one.

For the 2nd, I believed I tried both of them, and neither worked. I haven't been using C2 of late, so when I load it back up I will post the results I get.
B
13
S
1
Posts: 63
Reputation: 719

Post » Wed Sep 14, 2016 2:54 am

B
11
S
6
G
15
Posts: 256
Reputation: 9,207

Post » Mon Sep 19, 2016 9:19 pm



Again, thanks, will look into that. ;)
B
13
S
1
Posts: 63
Reputation: 719

Post » Mon Sep 19, 2016 10:19 pm

You're welcome, ShinobiSlash. :D
B
11
S
6
G
15
Posts: 256
Reputation: 9,207

Post » Thu Sep 22, 2016 8:56 pm

Gmoney wrote:You're welcome, ShinobiSlash. :D


Got it working...again thanks for the help guys! Repped!
B
13
S
1
Posts: 63
Reputation: 719

Post » Thu Sep 22, 2016 10:14 pm

You're always welcome, ShinobiSlash. I'm glad it worked..!! :D
B
11
S
6
G
15
Posts: 256
Reputation: 9,207


Return to How do I....?

Who is online

Users browsing this forum: Blendi1223, ditocruz, kellehk and 26 guests