User Tag List

Results 1 to 5 of 5

Thread: Wave Based game (Need Help)

  1. #1
    No Products Registered

    Join Date
    Mar 2007
    Location
    England
    Posts
    16
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Wave Based game (Need Help)

    Hello guys, I'm kind of stuck on how to get random spawning of characters from one edge of the frame to move across to the other side. Nothing I try works and Ive tried spawning the character at a moving object and have it shoot the character to the other side and Ive also tried randomly spawning the character at a active object and shooting it to the other side of the screen, but the characters just build up on the spot and don't move.

    Can any one help me out with a tutorial?

  2. #2
    Forum Moderator Fusion 2.5 DeveloperHTML5 Export ModuleiOS Export ModuleSWF Export Module
    DavidN's Avatar
    Join Date
    Jun 2006
    Location
    Boston, MA, USA
    Posts
    4,044
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Wave Based game (Need Help)

    What you're describing sounds like it should work, but shot objects behave differently from ones that are created normally. Try using "Create an object" at (0, 0) from your moving "spawner", then using Set Direction in the same event. If used after Create Object, it'll only affect that created object.

  3. #3
    No Products Registered

    Join Date
    Mar 2007
    Location
    England
    Posts
    16
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Wave Based game (Need Help)

    Ive got it working now David, but I cant get them to spawn at random times, in between 1 and up seconds and also the set relative to object and set x and y random do not work in the way I have them. Ive linked to the file I have so far:

    wave.mfa

  4. #4
    No Products Registered

    Join Date
    Dec 2006
    Posts
    1,332
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Wave Based game (Need Help)

    I edited the example file you posted to create the soldiers randomly after one second. I'm not sure what else your trying to do, but I hope this helps.

    http://putstuff.putfile.com/59103/8559608

  5. #5
    No Products Registered

    Join Date
    Mar 2007
    Location
    England
    Posts
    16
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Wave Based game (Need Help)

    Thanks for showing me the random timer. The other thing you don't get, is that I don't want the character to spawn halfway off the frame, so you don't see all of him. So I wanted the character to spawn from an active object that was shorter than the frame height so the characters wouldn't overlap the frame.

Similar Threads

  1. Help with a turn based game
    By thebeast250 in forum Multimedia Fusion 2 - Technical Support
    Replies: 17
    Last Post: 16th December 2010, 04:30 AM

Posting Permissions

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