User Tag List

Page 1 of 3 1 2 3 LastLast
Results 1 to 10 of 25

Thread: Defcon missle system?

  1. #1
    No Products Registered

    Join Date
    Jul 2008
    Location
    Isle of wight, UK
    Posts
    236
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Defcon missle system?

    Hi everyone,

    I am currently making a game called THERMO NUKER and it is layed out in the same way as a game called DEFCON. So how would you make the missle make a curve towards the target so instead of it going into a straigh line it does an arc?

    Thanks,
    Rob

    Here is a pic of DefCon

    http://img.hexus.net/v2/gaming/screenshots_pc/defcon/defcon1_large.jpg
    (the arcy things)

  2. #2
    No Products Registered

    Join Date
    Aug 2006
    Location
    Westcountry, UK
    Posts
    862
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Defcon missle system?

    particle motion
    "suvat"
    s = ut + 1/2 at^2

  3. #3
    No Products Registered

    Join Date
    Jun 2006
    Location
    Land of raging rockets
    Posts
    1,231
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Defcon missle system?

    Now how helpful is that :confused:

    The formula describes a parabolic motion. I'm actually not sure if defcon uses parabolic motion or circular motion. It's not so obvious from the screenshot.

    To use this, you need to know what the variables mean:
    t = time (here: how long it takes)
    u = initial speed (here: launch speed)
    a = constant acceleration (here: gravity)
    s = distance between start and end

    Then you need to know that all except for t are vectors. E.g. a could be (0.0|-1.0) and so on. Then you check all the variables that you know and hopefully you end up with only one you don't know - so you resolve the formula to that variable. In this case we know start, end and the acceleration. So if we pick a time ourselves, we can get the initial speed - by resolving to u:

    u = -0.5*a*t + s/t

    I made an example from the formula mentioned by raytrace: curved projectile

  4. #4
    No Products Registered

    Join Date
    Jul 2008
    Location
    Isle of wight, UK
    Posts
    236
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Defcon missle system?

    I dont need to be told about that (all the time in physics). but that example is amazing but i still am a bit wery on how to apply this into my game

    Thanks,
    Rob

  5. #5
    No Products Registered

    Join Date
    Jun 2006
    Location
    Land of raging rockets
    Posts
    1,231
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Defcon missle system?

    Sorry. I thought it was a bit over the head for the average clicker (no offense ). What's the problem with this in your game then? You say where it starts, where it ends, how long it shall take and bam you launch it.

  6. #6
    No Products Registered

    Join Date
    Jul 2008
    Location
    Isle of wight, UK
    Posts
    236
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Defcon missle system?

    HAHAHAHA, the average clicker, that made me laugh for a few seconds. FUNNY!!

    really, that simple? Thanks

    Rob,

    PS, how to I allow multiple missles to be launched?

  7. #7
    No Products Registered

    Join Date
    Jun 2006
    Location
    Land of raging rockets
    Posts
    1,231
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Defcon missle system?

    Ah cmon dude :P

    In line 2, (user clicks with left button) add the action "Create projectile" (somewhere out of the screen). Double click with action so you get the list of actions for that event, and move the "Create projectile" action to the top of the list.


    That's it. Multiple missiles.

  8. #8
    No Products Registered

    Join Date
    Jun 2006
    Location
    Land of raging rockets
    Posts
    1,231
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Defcon missle system?

    Oh and, in your game you probably want to use the distance between start and end to calculate the duration for the rocket's flight.

    Right now they just go faster if the target is further away.

  9. #9
    No Products Registered

    Join Date
    Jul 2008
    Location
    Isle of wight, UK
    Posts
    236
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Defcon missle system?

    Well i ask for multiple missle system because it is diffrent bases firing at diffrent targets.

    Thanks
    (how do you find out the distance)
    Rob

    PS, "o comon dude", is that sarcasm because thats a....well....um.....a little evil or something ya know

    I dont wana fall out cause your cool



  10. #10
    Clicker Fusion 2.5

    Join Date
    Mar 2007
    Posts
    495
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)

    Re: Defcon missle system?

    Yeah, I wouldn't take it to heart.

    I was glad of the explanation to that formula.

Page 1 of 3 1 2 3 LastLast

Similar Threads

  1. Lines like in Missle Command....
    By Duncki in forum Multimedia Fusion 2 - Technical Support
    Replies: 6
    Last Post: 25th September 2014, 07:27 AM
  2. Guided Missle-point at and fly towards moving obj?
    By Tuna in forum Multimedia Fusion 2 - Technical Support
    Replies: 4
    Last Post: 30th May 2008, 05:34 PM
  3. Log-in System
    By grayhuskie53 in forum Multimedia Fusion 2 - Technical Support
    Replies: 6
    Last Post: 12th October 2007, 06:00 AM
  4. AI HELP! Using the "LKP" system.
    By Attan in forum File Archive
    Replies: 2
    Last Post: 20th July 2007, 09:08 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •