Hello, thanks for visiting GameML, if you are a Game Maker user, this is the site for you, please sign up, or login if you are already a member, or just browse the site! Welcome to GameML!

ATTENTION MEMBERS!!! USERS CAN NOW SIGN UP AGAIN!
Log in

I forgot my password

Search
 
 

Display results as :
 


Rechercher Advanced Search

Site Hits
Free hit counter
These stats started at 0 on July 7th 2009
GameML File Sharing
USERNAME: gamemladmin@gmail.com PASSWORD: gamemlsite Upload Here: http://gameml.iowoi.org/GameML-File-Sharing-h3.htmPlease add only games.
Create A GAMEML BLOG!
Make a Blog on GameML:http://gamemlblogs.wetpaint.com
Keywords


maybe an easy answer

View previous topic View next topic Go down

maybe an easy answer

Post by The Dark Ninja on Sun Oct 04, 2009 6:05 pm

how do i make it so when i left click and hold i can drag that item arround even if there is the same object in the room,and when you release the key the ballon falls to the ground
avatar
The Dark Ninja
Super 500 GML
Super 500 GML

Posts : 1495
Points : 33144
GameML Reputation : 7
Join date : 2009-06-16
Location : Earth

View user profile http://www.thedakninja.tastyhamgames.com

Back to top Go down

Re: maybe an easy answer

Post by Vivi_IX on Sun Oct 04, 2009 8:38 pm

Put in ballon object.
Left Click Pressed:
Code:
drag = true;

Global Left Click:
Code:
if drag = true
{x = mouse_x;
y = mouse_y;}

Left Release or Global Left Release:
Code:
drag = false;
//And put whatever actions happen when you let go in here, such as:
//gravity = 0.2
avatar
Vivi_IX
Tres GameML Ninja
Tres GameML Ninja

Posts : 164
Points : 30478
GameML Reputation : 14
Join date : 2009-07-09
Age : 27
Location : USA: Painesville, Ohio

View user profile http://www.yoyogames.com/members/Vivi_IX

Back to top Go down

Re: maybe an easy answer

Post by The Dark Ninja on Mon Oct 05, 2009 10:08 pm

thanx
avatar
The Dark Ninja
Super 500 GML
Super 500 GML

Posts : 1495
Points : 33144
GameML Reputation : 7
Join date : 2009-06-16
Location : Earth

View user profile http://www.thedakninja.tastyhamgames.com

Back to top Go down

Re: maybe an easy answer

Post by Sponsored content


Sponsored content


Back to top Go down

View previous topic View next topic Back to top

- Similar topics

 
Permissions in this forum:
You cannot reply to topics in this forum