User Tag List

Results 1 to 5 of 5

Thread: placing terrain where jouse clicks

  1. #1
    Clicker Fusion 2.5 DeveloperiOS Export ModuleSWF Export Module

    Join Date
    Mar 2008
    Location
    Singapore, Singapore
    Posts
    281
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    placing terrain where jouse clicks

    Sorry about all my questions but I really want help on these things. How do i make it so that like in a level editor if i click a terrain type and i click anywhere, and it places the terrain, how do i do that?

    To make it simpler im making a game, and you can place boxes or other sorts of objects, and you do this to bounce a little ball and have fun with it. I want it so that if a click a button, lets say its related to a box, i can click and place a box where ever i want to place it, then when im done i click a button so that if i click again it doesn't place the object, or in my little example, my box.

  2. #2
    Clicker Fusion 2.5 DeveloperSWF Export Module

    Join Date
    Jun 2006
    Location
    Turku, Finland
    Posts
    1,023
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: placing terrain where jouse clicks

    The easiest way would be to do the following:

    +mouse right button is clicked
    -create box at 0,0 from invisible mouse.

    There, the "invisible mouse" would be an active object that is set to invisible at the start of frame and is always set to Xmouse and Ymouse, so it follows the mouse cursor. If you can't figure it out, you could post your game's MFA file (the code) to the File Archive and I can put it in your game.

  3. #3
    No Products Registered

    Join Date
    Apr 2007
    Posts
    11
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: placing terrain where jouse clicks

    I prefer:

    +User clicks with Left Button
    -Create Terrain at (0,0) [[Anywhere really]]
    -Set Terrain X Position to XMouse
    -Set Terrain Y Position to YMouse

    It'll probably save you a processor cycle or two.

  4. #4
    Clicker Fusion 2.5 DeveloperSWF Export Module

    Join Date
    Jun 2006
    Location
    Turku, Finland
    Posts
    1,023
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: placing terrain where jouse clicks

    Yes, that sounds like a better idea. Simpler, too.

  5. #5
    Clicker Fusion 2.5 DeveloperiOS Export ModuleSWF Export Module

    Join Date
    Mar 2008
    Location
    Singapore, Singapore
    Posts
    281
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: placing terrain where jouse clicks

    Thank you both for the help! :grin:

    - Oreo

Similar Threads

  1. Problems with placing walls
    By MangoMan in forum Multimedia Fusion 2 - Technical Support
    Replies: 8
    Last Post: 9th December 2011, 09:46 PM
  2. Placing objects with the mouse
    By Rabagast in forum Multimedia Fusion 2 - Technical Support
    Replies: 5
    Last Post: 19th September 2008, 05:33 AM
  3. Placing an ID on Counter Objects
    By ZayLong in forum Multimedia Fusion 2 - Technical Support
    Replies: 8
    Last Post: 29th August 2008, 01:26 AM
  4. W's best: hiding, destroying or placing offscreen?
    By RayMarble in forum Multimedia Fusion 2 - Technical Support
    Replies: 2
    Last Post: 24th August 2008, 04:55 PM
  5. Placing objects in front
    By kmarshall in forum The Games Factory 2 - Technical Support
    Replies: 1
    Last Post: 11th June 2007, 06:01 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
  •