User Tag List

Results 1 to 3 of 3

Thread: strategy game problem

  1. #1
    No Products Registered

    Join Date
    Jan 2009
    Posts
    18
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    strategy game problem

    IM trying to make a 2d scrolling strategy game but i ran into a slight problem. I wanted the player to be able to move boxes (in 8 dirrections) by clicking the box and moving the mouse and when the player clicks the box again you would release the box but i dont know how to meet this goal. Also this action can only be used when the player is 100 pixles from the box and no objects are in the way.

  2. #2
    Clicker Multimedia Fusion 2 DeveloperSWF Export Module
    RickyRombo's Avatar
    Join Date
    Mar 2008
    Location
    Somewhere between here and there
    Posts
    3,167
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: strategy game problem

    *User clicks on box
    +Use the advanced direction object to find the float value of the distance between the player and the box, and compare it to be less than 100 (I don't know the parameters off the top of my head) And I don't know about objects in the way. (invisible active detector and set the angle to the direction in between the two or something?)
    -Box: Set alterable string "isDragged" to "yes" //Have isDragged be an alterable string of box (obviously)

    *Alterable string "isDragged" of box = "yes"
    +Repeat while left mouse button is pressed
    -Set X position of box to XMouse
    -Set Y position of box to YMouse

    *Repeat while left mouse button is pressed [NEGATE]
    +Alterable string "isDragged" of box = "yes"
    -Set Alterable string "isDragged" to = "no"

  3. #3
    No Products Registered

    Join Date
    Jan 2009
    Posts
    18
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: strategy game problem

    thanks i think ill just allow the player move the box even if something is in the way

Similar Threads

  1. value database for strategy based game
    By Nicholas Martin in forum Multimedia Fusion 2 - Technical Support
    Replies: 6
    Last Post: 14th September 2009, 03:36 AM
  2. Moving Units in a Strategy game?
    By ArchAngel in forum File Archive
    Replies: 10
    Last Post: 31st May 2008, 04:24 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
  •