User Tag List

Results 1 to 6 of 6

Thread: Simple Pawn movement

  1. #1
    No Products Registered

    Join Date
    Feb 2007
    Posts
    3
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Simple Pawn movement

    Hi,
    Yes, new to this tool set. Really like it!

    Basic question: How to make checkers-like-pawn movement?
    I would like to mouse click to select an active image(pawn) and then be able to move the selected pawn via the arrow keys. Then select another pawn and move only that one.

    So far, can add 8 direction movement to pawns as well as the mouse click events. I start the frame with an enter frame event to stop movement on the pawns, then use the 'mouse click on object' to 'Start' the Pawn movement. Ok, this doesn't work.. lol..
    Now, starting to play around with behaviors attached to the pawn as well as the frame events.

    Having played with the MMF2 for a few days, I'm thinking there are probably multiple ways to accomlpish this with such a rich feature set.
    However, I'm feeling like a blank droid at this point.
    [blush].
    Any help is appreciated!

  2. #2
    Clicker Fusion 2.5 DeveloperFusion 2.5 DeveloperiOS Export ModuleMac Export ModuleSWF Export ModuleUnicode Add-on
    Fusion 2.5 (Steam)Fusion 2.5 Developer (Steam)Android Export Module (Steam)HTML5 Export Module (Steam)iOS Export Module (Steam)Universal Windows Platform Export Module (Steam)
    JasonDarby's Avatar
    Join Date
    Jun 2006
    Location
    UK
    Posts
    4,938
    Mentioned
    0 Post(s)
    Tagged
    1 Thread(s)

    Re: Simple Pawn movement

    I would consider path Movement. As the board will be perfectly spaced, you could create a path with multiple notes for each board place.

    Dont know if that makes sense or not? Let me know if it doesnt

    Jason

  3. #3
    No Products Registered

    Join Date
    Feb 2007
    Posts
    3
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Simple Pawn movement

    Hi Jason, thx for reply.
    Waiting for your new book as well ! :-)

    My troubles aren't with the spacing or destination determination of each pawn.
    Also, I'm playing around with the AGBO presently.

    What I am tring to do is enable a player to select a pawn (active image) with the mouse and then be able to control movement of only the selected pawn. Then select another pawn and move only that pawn, etc.

    Interesting idea on using path wth multiple nodes (once I get the pawn selected and movement active)
    Thanks for any help!
    :-)
    Vic

  4. #4
    No Products Registered

    Join Date
    Feb 2007
    Posts
    3
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Simple Pawn movement

    ok, 2 funny....
    ..Put the mouse click on the active image pawn.
    ..Have movement set to 8 directions
    ..added 2 events to pawn object, eg. 10+X position and 10+Y position ; once I got the expression syntax right

    I get the illusion of single pawn movement (to a set position) when I click a pawn. All I'm doing is changing position on click.

    Now back to working on the selection and player-controlled movement for a single pawn in a sea of pawns...

    Thoughts?
    Thanks,
    Vic

  5. #5
    Clicker Fusion 2.5 DeveloperFusion 2.5 DeveloperiOS Export ModuleMac Export ModuleSWF Export ModuleUnicode Add-on
    Fusion 2.5 (Steam)Fusion 2.5 Developer (Steam)Android Export Module (Steam)HTML5 Export Module (Steam)iOS Export Module (Steam)Universal Windows Platform Export Module (Steam)
    JasonDarby's Avatar
    Join Date
    Jun 2006
    Location
    UK
    Posts
    4,938
    Mentioned
    0 Post(s)
    Tagged
    1 Thread(s)

    Re: Simple Pawn movement

    I think using AGBO sounds like a good plan (though ive never used it)...

    One thing you might want to consider, and again, this isnt necessarily the best way, but because of MMFs power "One" of the possible ways. But create an array of the board, set a "0" for no piece being present and a "1" for a piece being present. You might need a second array to write and load what color that peice is. Then you will be able to do calculations on path of a piece.

    Another idea (sorry just throwing them out ... you could also have some invisible board tiles, these would be numbered from the one corner to the next eg an array object called 11, 12,13,14, 15 etc for the actual position on the board. Then you can do calculations on the peice and the invisble board.

    Hope this is of some help and not confusing the matter. When i was making a crossword puzzle i found arrays to be the easiest way of programming a board.

    Jason

  6. #6
    No Products Registered

    Join Date
    Nov 2006
    Location
    Australia
    Posts
    175
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Simple Pawn movement

    I got a idea, but is it probaly not the most effective one out there and will probaly take alot of time to set up. You could at start of frame set all the speeds of the pawns to 0. Then create 2 buttons for each pawn one for move and 1 for cancel. So when you press on the certain pawns, the 2 buttons appear which says cancel or move. If you select move just set that appropriate pawn to have the speed at watever and move it. Might take awhile but i hope it helps in some way

Similar Threads

  1. simple movement
    By jchristiansen in forum Multimedia Fusion 2 - Technical Support
    Replies: 3
    Last Post: 26th November 2009, 08:16 PM
  2. Simple ISO Movement Example
    By nivram in forum File Archive
    Replies: 5
    Last Post: 11th April 2009, 06:46 PM
  3. Simple ISO Movement Example
    By nivram in forum Widgets
    Replies: 0
    Last Post: 7th April 2009, 11:32 PM
  4. Please help~simple RPG movement
    By pinacoladaxb in forum Multimedia Fusion 2 - Technical Support
    Replies: 5
    Last Post: 10th April 2007, 05:37 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
  •