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!

Join the forum, it's quick and easy

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!
Would you like to react to this message? Create an account in a few clicks or log in to continue.
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: https://gameml.forumotion.com/GameML-File-Sharing-h3.htmPlease add only games.
Create A GAMEML BLOG!
Make a Blog on GameML:http://gamemlblogs.wetpaint.com

maybe an easy answer

2 posters

Go down

maybe an easy answer Empty maybe an easy answer

Post by The Dark Ninja 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
The Dark Ninja
The Dark Ninja
Super 500 GML
Super 500 GML

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

http://www.thedakninja.tastyhamgames.com

Back to top Go down

maybe an easy answer Empty Re: maybe an easy answer

Post by Vivi_IX 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
Vivi_IX
Vivi_IX
Tres GameML Ninja
Tres GameML Ninja

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

http://www.yoyogames.com/members/Vivi_IX

Back to top Go down

maybe an easy answer Empty Re: maybe an easy answer

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

thanx
The Dark Ninja
The Dark Ninja
Super 500 GML
Super 500 GML

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

http://www.thedakninja.tastyhamgames.com

Back to top Go down

maybe an easy answer Empty Re: maybe an easy answer

Post by Sponsored content


Sponsored content


Back to top Go down

Back to top

- Similar topics

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