User Tag List

Results 1 to 4 of 4

Thread: Picture game help

  1. #1
    No Products Registered

    Join Date
    Dec 2007
    Posts
    5
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Picture game help

    Hi there, i created a thread a while back asking for basic ideas on how to go about making a picture puzzle type game (as im completely new to MMF)for a project that im doing on my course at Uni.

    Im happy to say that ive been successful :cool:, the game works perfectly just as i want it to, all except for one little problem. Here it is:

    I have created an event that makes the picture follow the users mouse as long as the mouse remains clicked (this is so they can drag and drop pictures etc) but this event requires the mouse to always be over the picture in question, otherwise it does not work.

    Example: I click a picture (lets call it Pic A) and start to drag it, all is going well until i get a little frisky and decide to drag it really quickl, well then the mouse is no longer over the picture i am clicking and the previous event i mentioned is no longer activated.

    I dont know if that is clear enough but if anybody could spare a little time to tell me what is going wrong here i would be very grateful.

    Here is a link to the previous thread: Linky

    And here is a Link to the RAR file of my game (its on my group projects wiki page): Pic game

    It right at the bottom of the page. Also the way i coded the game is pretty sloppy i must say but i am still getting to grips with MMF but it shouldnt be too hard to understand.

    Thanks in advance Dudz...

  2. #2
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleiOS Export ModuleSWF Export Module
    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)
    Popcorn's Avatar
    Join Date
    Jun 2006
    Location
    Norway, Bergen
    Posts
    2,366
    Mentioned
    13 Post(s)
    Tagged
    0 Thread(s)

    Re: Picture game help

    The trick is to set a flag on when you click on the object, and off when the button is released. Then instead of testing if the mouse is over the object, test if the flag is on.

    Check out the widgets section of the forum in the file archieve. You'll find an example of smooth object dragging there.

  3. #3
    No Products Registered

    Join Date
    Dec 2007
    Posts
    5
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Picture game help

    Quote Originally Posted by Popcorn
    The trick is to set a flag on when you click on the object, and off when the button is released. Then instead of testing if the mouse is over the object, test if the flag is on.

    Check out the widgets section of the forum in the file archieve. You'll find an example of smooth object dragging there.
    Would that be the same as using a Global Variable? sorry im new too MMF and never heard of a flag but if it is what i think it is then i could just use a global variable couldnt i?

    One other question wouldnt i get a problem if the user decides to click on anything? i mean not a picture? because if the flag is turned on when the user clicks, then it wouldnt be able to differentiate between the user clicking a picture or the background?

  4. #4
    Clicker Multimedia Fusion 2

    Join Date
    Jul 2007
    Posts
    138
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Picture game help

    You would make an event like this:
    When user clicks on picture > toggle flag 0 (if the flag is off, this will turn it on; if it's on it will turn off)

    And then:
    When picture's flag 0 is on > set x position to xmouse and set y position to ymouse (You can test if a flag is on by making a new event and right-clicking the picture and it will be under alterable values. )

    Good luck and hopefully this works.

Similar Threads

  1. Take picture and make from it Active Object / Active picture
    By qenio in forum Android Export Module Version 2.0
    Replies: 3
    Last Post: 3rd February 2014, 07:34 AM
  2. BUG: Active Picture > New Picture from Selector doesn't wait for image - Beta9
    By AyreGuitar in forum iOS Export Module Version 2.0
    Replies: 5
    Last Post: 27th January 2013, 03:09 PM
  3. Picture Name$ for Active Picture
    By AyreGuitar in forum iOS Export Module Version 2.0
    Replies: 2
    Last Post: 11th April 2012, 07:54 AM
  4. Solid Objects in my Zelda Game (Picture inside)
    By RetroRain in forum Multimedia Fusion 2 - Technical Support
    Replies: 13
    Last Post: 11th December 2010, 04:02 PM
  5. Save Game Object work with active picture?
    By Gibbon in forum Multimedia Fusion 2 - Technical Support
    Replies: 0
    Last Post: 12th January 2007, 10:57 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
  •