User Tag List

Results 1 to 2 of 2

Thread: Objects in multimediafusion 2 random spawn issue

  1. #1
    Krippa
    Guest

    Objects in multimediafusion 2 random spawn issue

    Hello, i go to school in sweden and we were given an assignment to make a game, we have until summer to make it. I have a game where the view is from the top and you see the upface of a spaceship and on the other side of the screen there are enemies. Now i`d like to know how i can if it is possible to make the enemies repspawn once again randomly on the upper side of the screen, i dont want it to be predictable for the player where the next enemie will appear.
    If anyone knows how to do this, please tell me.

  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: Objects in multimediafusion 2 random spawn issue

    In the same event that creates the enemy object; set the enemy objects x, and y position separately...

    Rather then showing the frame and asking where to put it (which is what happens when you set both 'x' and y' together) it will instead display an input dialog in-which you can enter numbers.

    Enter the following to position an object at a random position on the x axis (horizontally) within the frame:

    set object X position to random(frame width)

    In the above statement 'random(frame width)' will return a different number every time within 'frame width'.


    Don't worry if this isn't making sense, because i made you an example too Here it is.


    Best of luck with your school assignment Krippa!

Similar Threads

  1. Random Active Spawn in Random Location in Frame
    By Top_of_the_Temple in forum Multimedia Fusion 2 - Technical Support
    Replies: 5
    Last Post: 20th October 2016, 04:33 AM
  2. How to spawn random enemys?
    By UnicornMan in forum Multimedia Fusion 2 - Technical Support
    Replies: 5
    Last Post: 9th September 2013, 04:54 AM
  3. A very random issue...
    By sumgai in forum Multimedia Fusion 2 - Technical Support
    Replies: 5
    Last Post: 14th July 2012, 06:03 AM
  4. Question on a controlled random star spawn
    By pyromane in forum Multimedia Fusion 2 - Technical Support
    Replies: 5
    Last Post: 17th September 2009, 09:02 AM
  5. Question for a random spawn!
    By pyromane in forum Multimedia Fusion 2 - Technical Support
    Replies: 6
    Last Post: 10th September 2009, 05:15 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
  •