User Tag List

Results 1 to 3 of 3

Thread: Random character locations

  1. #1
    Clicker Multimedia Fusion 2SWF Export Module

    Join Date
    Feb 2010
    Posts
    44
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Random character locations


    When a character is destroyed in my game, MMF2 creates another instance of it. Is it possible to have the object (character) created and placed in a random location along the X axis but above a certain Y axis value?

    In other words, I want the character to be created anywhere as long as it is above the top edge of the playing field.

    Any help would be appreciated.

    Thanks,
    Adrian


  2. #2
    Clickteam Clickteam
    LB's Avatar
    Join Date
    Jun 2007
    Location
    Richardson, Texas, North America
    Posts
    8,937
    Mentioned
    4 Post(s)
    Tagged
    0 Thread(s)

    Re: Random character locations

    -Create Object Player at (-100, -100)
    -Set Position of Player to (Random(Frame Width), Random(Frame Height))

    Copy paste that and it should work fine
    Working as fast as I can on Fusion 3

  3. #3
    Clicker Multimedia Fusion 2SWF Export Module

    Join Date
    Feb 2010
    Posts
    44
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Random character locations

    Excellent! Thank you.

    Adrian

Similar Threads

  1. Get distance from 2 locations (Lat/Long)?
    By StingRay in forum iOS Export Module Version 2.0
    Replies: 4
    Last Post: 3rd July 2012, 05:55 PM
  2. access to GPS or Locations?
    By Gibbon in forum iOS Export Module Version 2.0
    Replies: 1
    Last Post: 9th August 2011, 10:51 AM
  3. Help with Directory Locations for install
    By AbnVet in forum Install Creator and Patch Maker
    Replies: 2
    Last Post: 30th December 2006, 04:42 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
  •