User Tag List

Results 1 to 2 of 2

Thread: Creating hotspots

  1. #1
    JimmyPeters
    Guest

    Creating hotspots

    This is hopefully a pretty noobie question. I want to create an event that destroys a object when the user clicks his mouse on a hotspot on the object. So the destroy action won't happen unless the user clicks within an exact area of the object. After hunting around and not seeing an obvious way to do this, I thought of grouping two objects (1 as the click spot and the other as the rest object behind the click spot) but couldn't find a way to group objects in the way you can group images in other programs. So now I am at a loss. Any help would be greatly appreciated. Thanks in advance!

  2. #2
    No Products Registered

    Join Date
    Aug 2006
    Posts
    984
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Creating hotspots

    Code:
    User clicks with left button on "Object"
    + xmouse = X Left("Object") + HOTSPOTX
    + ymouse = Y Top("Object") + HOTSPOTY
    --> Object - Destroy
    that should work, but obviously clicking on a transparent area won't work unless the object has fine collisions disabled

    EDIT: actually, this code needs the user to click on an exact pixel... try something like this for a square area:

    Code:
    User clicks with left button on "Object"
    + xmouse > X Left("Object") + HOTSPOTXMIN
    + xmouse < X Left("Object") + HOTSPOTXMAX
    + ymouse > Y Top("Object") + HOTSPOTYMIN
    + ymouse < Y Top("Object") + HOTSPOTYMAX
    --> Object - Destroy

Similar Threads

  1. About animations and hotspots
    By MonDieu72 in forum Multimedia Fusion 2 - Technical Support
    Replies: 1
    Last Post: 1st January 2014, 04:51 AM
  2. One image - hotspots?
    By GameMaker2019 in forum iOS Export Module Version 2.0
    Replies: 3
    Last Post: 19th May 2013, 01:53 PM
  3. Flipping hotspots and actionpoints.
    By Syp3r in forum Multimedia Fusion 2 - Technical Support
    Replies: 3
    Last Post: 18th August 2006, 07:53 AM
  4. resize & hotspots altering
    By thewreck in forum Multimedia Fusion 2 - Technical Support
    Replies: 19
    Last Post: 3rd July 2006, 02:51 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
  •