How do I fire a circular motion bullet

Get help using Construct 2

Post » Tue Sep 08, 2015 8:03 pm

Hi All,

This is driving me nuts !!!!

I'm new to game development so please be kind :D

I have made some progress but need some help!!!

My objective is to fire a bullet which follows a circular path (using sin function) from an object (the shooter) which is also travelling on a circular path. The bullet will travel faster than the shooter) I hope this makes sense.

So I have made an attempt and have had some success with the help of some existing entries on this forum. I have the got the shooter moving in a circular path. Unfortunately I can't get it to spawn the bullet. I am puzzled. I've just realised I can't post an URL. What is the best way to get you a copy of the code?

Can you correct my code please and give me an explanation as to what was wrong?

Much Kudos and thanks,

Rjballin
B
4
Posts: 6
Reputation: 212

Post » Tue Sep 08, 2015 8:55 pm

From the bug report guidelines:

Due to heavy spam on the forum, we have to block the posting of links for new users. If your link to the .capx is blocked, either remove the http and www parts, or insert * characters through them, e.g.
example.com/myproject.capx
or
h*t*t*p://w*w*w.example.com/myproject.capx


You can post your file that way. :)
B
39
S
12
G
2
Posts: 46
Reputation: 4,046

Post » Tue Sep 08, 2015 8:58 pm

here is an idea

https://goo.gl/CAltQ5
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,832

Post » Wed Sep 09, 2015 9:29 am

Message: rjballin is not yet permitted to post plain text URLS (300 rep required). 1 URLS removed. Why?
RamPackWobble wrote:here is an idea


Hi there RamPackWobble, thanks for responding. It works a treat. By way of thanks I have donated to your chosen charity, MDNA (they really should accept donations by Paypal,it makes life so much easier)

This was my initial attempt. Can you take a look and see where I went wrong?

h*t*t*p*s://w*w*w.dropbox.com/s/r0142xkp3a7ap8k/circle%20bullet.capx?dl=0
Thanks JerkTheRipper for the tip.
B
4
Posts: 6
Reputation: 212

Post » Wed Sep 09, 2015 11:05 am

Thanks for the donation - I would be lost without their support. I will ask about paypal.

here is my edit of your capx - hope it makes sense

https://goo.gl/2utTvG
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,832

Post » Wed Sep 09, 2015 10:28 pm

Message: rjballin is not yet permitted to post plain text URLS (300 rep required). 1 URLS removed. Why?
RamPackWobble wrote:Thanks for the donation - I would be lost without their support. I will ask about paypal.

here is my edit of your capx - hope it makes sense


Thanks again RamPackWobble. The MND Association is definitely a worthy cause. I have a loved one who has a degenerative condition, unfortunately she is in a country where the public health system is very poor.

Going back to the exercise. Is it possible to help me modify the code so that when 'r' on the keyboard is pressed the space craft moves in the in opposite direction (anticlockwise) for ten seconds after which it resumes moving clockwise, the . At all times when the left mouse button is clicked the spaceship should shoot bullets in the direction it is travelling. In addition the spaceship and bullet also faces in the direction it is going in.

Any help is much appreciated.

Capx file below. I did give it a try but made a complete hash of it.

h*t*t*p*s*://w*w*w*.dropbox.com/s/y0wkz9itt8oidlk/circle%20test%203.capx?dl=0

Thanks again.
B
4
Posts: 6
Reputation: 212

Post » Thu Sep 10, 2015 7:24 am

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,832

Post » Thu Sep 10, 2015 3:24 pm

RamPackWobble wrote:https://www.dropbox.com/s/hh78oecggyjh0jq/circle%20test%204.capx?dl=0


Thanks again PamPackWobble, I'm learning a lot from you.
B
4
Posts: 6
Reputation: 212


Return to How do I....?

Who is online

Users browsing this forum: marcinkowski and 14 guests