User Tag List

Results 1 to 3 of 3

Thread: clic on a sprite to move it

  1. #1
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleiOS Export ModuleSWF Export ModuleXNA Export ModuleUnicode Add-on
    arthurh's Avatar
    Join Date
    Sep 2010
    Posts
    916
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Question clic on a sprite to move it

    Hi,

    I have a sprite i clone many times. When i stay click on a sprite, i can move it (xmouse, ymouse). But if somes sprites overlaps and i click on these sprites, i take all of them. How to bring just one sprite ? for example, the sprite on the top ?

    Hope you understand my problem

  2. #2
    Clicker Fusion 2.5 DeveloperFusion 2.5+ DLCAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleUniversal Windows Platform Export ModuleSWF Export Module

    Join Date
    Dec 2008
    Location
    Italy
    Posts
    404
    Mentioned
    7 Post(s)
    Tagged
    0 Thread(s)
    Here's a simple solution that should work: three events and it doesn't require loops/foreach loops, etc.
    You use a counter to detect which Active Object the cursor is overlapping with (leveraging the fact that the counter can take just one value).
    overlap.mfa

  3. #3
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleiOS Export ModuleSWF Export ModuleXNA Export ModuleUnicode Add-on
    arthurh's Avatar
    Join Date
    Sep 2010
    Posts
    916
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Wow Faber ! Thank you very much !
    One question to understand : you spread value 0 in each objet. But when i overlap an objet just the first one have 0? the secand have 1, the third 2. What is the mecanism behind this ?
    I was thinking to do that i must create an objet and spread in alt value a loopindex.

Similar Threads

  1. Mouse-controlled sprite does not move in Android phone
    By aminemarref in forum Android Export Module 2.5
    Replies: 7
    Last Post: 30th November 2014, 08:31 AM
  2. Make a Sprite move between two points
    By WEich1213 in forum Fusion 2.5
    Replies: 7
    Last Post: 14th April 2014, 09:36 PM
  3. double clic
    By neurone77 in forum Android Export Module 2.5
    Replies: 9
    Last Post: 8th March 2014, 03:33 PM
  4. bug du clic sous swf
    By sylvie in forum Multimedia Fusion 2 - Technical Support
    Replies: 5
    Last Post: 2nd August 2013, 12:15 PM
  5. pb or not pb sur le clic de la souris?
    By pit73 in forum Multimedia Fusion 2 - Technical Support
    Replies: 5
    Last Post: 21st April 2011, 09:22 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
  •