User Tag List

Results 1 to 5 of 5

Thread: Meteor Game help!!

  1. #1
    No Products Registered

    Join Date
    May 2008
    Location
    U.S.A.
    Posts
    138
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Meteor Game help!!

    I am trying to make a game in which you have to defend the city against a bombardment of meteors, pretty simple, however, if a meteor hits the city then i want the screen to shake, how would i do something like this? Also, I am using the mouse to destroy the meteors, so what would i do to leave a simple trail following the mouse for like 100 pixels (or somehting like that), but not stay there forever?

  2. #2
    Clicker Multimedia Fusion 2SWF Export Module
    Jacob's Avatar
    Join Date
    Jul 2007
    Location
    Second pixel to the right
    Posts
    3,208
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Meteor Game help!!

    If youre going to ask a question, do it once, not twice, especially when you get an answer.
    Quote Originally Posted by LazyCoder
    For the shaking, what I'd do is I'd have a global value called the shakeValue. Whenever a meteor hits, add... oh let's say 100 to that value. Then you move the screen to: (subtract 1 from shakeValue 'always')
    Xscreen + Cos(random(360)) * (shakeValue/10)
    Yscreen + Sin(random(360)) * (shakeValue/10)
    and Xscreen and Yscreen are the coordinates of the point you want the screen to center on (just be sure you have enough room bordering the visible area to be seen when you shake, mmf2 won't scroll outside the frame).

    And about the mouse thing, are you trying to make it so the mouse will draw something, and when it reaches a certain length, start chopping off the end to make room for the new stuff?

  3. #3
    No Products Registered

    Join Date
    May 2007
    Location
    Christopia
    Posts
    259
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Meteor Game help!!

    Here an example that should answer your questions.
    http://www.mediafire.com/?mjnxasgh1mp

  4. #4
    No Products Registered

    Join Date
    May 2008
    Location
    U.S.A.
    Posts
    138
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Meteor Game help!!

    thanks so much

  5. #5
    No Products Registered

    Join Date
    Feb 2007
    Location
    Sydney, Australia
    Posts
    1,654
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Meteor Game help!!

    I usually get a hidden object with a crazy path movement. When the screen needs to shake I make the x an y scrolling to look at the object with the crazy path movement. Although that is a pretty bad way of doing things

Similar Threads

  1. Donkey Kong JR Game & Watch cloned into arcade game some MMF2 technical problems.
    By daryuss in forum Multimedia Fusion 2 - Technical Support
    Replies: 1
    Last Post: 9th June 2013, 09:17 PM
  2. Open exported html doc, game doesnt load. When opening raw SWF, game fits screen!
    By Oreo in forum SWF/Flash Export Module Version 2.0
    Replies: 5
    Last Post: 19th November 2012, 03:16 PM
  3. Meteor Game
    By csj1 in forum Hardware Accelerated Runtime
    Replies: 2
    Last Post: 19th May 2008, 06:54 PM
  4. Meteor Trail Sprite
    By LazyCoder in forum File Archive
    Replies: 7
    Last Post: 2nd January 2008, 11:20 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
  •