User Tag List

Results 1 to 4 of 4

Thread: Shoot-em-up Bullet Generator help

  1. #1
    No Products Registered

    Join Date
    May 2008
    Location
    NSW Australia
    Posts
    32
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Shoot-em-up Bullet Generator help

    Hello everyone!

    I'm developing a vertical scrolling shoot-em-up similiar to Raiden, Dodonpachi, Strikers, etc. I'm trying to develop an engine whereby I can set up complicated bullet patterns easily, then each enemy will load the relevant information and then shoot the bullets.

    So basically my issue is with how to store this data, and how to input the data. I want to store the angle, speed and delay between bullets. I'm not sure what the best way to do this is in Multimedia Fusion. Creating these values as text would be the best option and then have my code interpreting the values.

    For example, "10, 5, 20" would shoot a bullet at 20 degress, at a speed of 5 with a 20 millisecond delay till the next bullet.

    Another example "10, 5, 20, 20, 5, 20, 30, 5, 20" would shoot 3 bullets at 10 degrees then 20, then 30 degrees with 20 second intervals between each and a speed of 5 for all.

    So the best way I think I could do that is using strings. That way I could generate so many complicated bullet patterns as easily as typing in a bunch of text to be interpreted. I'd really like to avoid using arrays due to their fixed length, and because you can only enter data at runtime and have to store the arrays externally (I'd also like to have this game on the internet with Vitalise)

    This is all delving into things I have no experience with in Multimedia Fusion. Hopefully I've explained myself clearly enough and someone can provide some advice as to what the best way to tackle this is!

    Thanks everyone,

    Sincerely,

    FungalGrowth

  2. #2
    Clicker Multimedia Fusion 2
    SEELE's Avatar
    Join Date
    Jul 2007
    Location
    Terra australis incognito
    Posts
    1,916
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Shoot-em-up Bullet Generator help

    Use the String tokenizer and set the delimiter to ','.

  3. #3
    Clicker Multimedia Fusion 2
    SEELE's Avatar
    Join Date
    Jul 2007
    Location
    Terra australis incognito
    Posts
    1,916
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Shoot-em-up Bullet Generator help

    http://www.clickteam.com/epicenter/ubbthreads.php?ubb=showflat&Number=92120#Post92120

    that should save some confusion.

  4. #4
    No Products Registered

    Join Date
    May 2008
    Location
    NSW Australia
    Posts
    32
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Shoot-em-up Bullet Generator help

    Thanks Seele!

    This is perfect! Just the solution I had in mind, and the example file is perfect. Thankyou so much you've allowed me to overcome the biggest hurdle in my game development so far!

    I see you have a unique way of creating the timer using the mod function. Is this resource light way for doing a timer? At the moment I'm just using an alterable value that subtracts 1 every ms and shoots the bullet when it reaches 0.

    Thanks again Seele!

    FungalGrowth

Similar Threads

  1. Bullet-Time: There is no Foo!
    By Dines in forum Articles
    Replies: 24
    Last Post: 2nd June 2013, 10:04 PM
  2. If bullet overlaps a certain object, damage the shooter of the bullet
    By StardustSpeedman in forum Multimedia Fusion 2 - Technical Support
    Replies: 7
    Last Post: 10th September 2012, 02:43 PM
  3. bullet goes through wall
    By jaaj302005 in forum Multimedia Fusion 2 - Technical Support
    Replies: 4
    Last Post: 14th October 2011, 12:04 AM
  4. Bullet spray
    By Exploder1010 in forum File Archive
    Replies: 8
    Last Post: 4th August 2011, 05:59 AM
  5. bullet holes.
    By piki in forum Multimedia Fusion 2 - Technical Support
    Replies: 19
    Last Post: 8th October 2007, 03:43 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
  •