Log in
Search
GameML File Sharing
USERNAME: gamemladmin@gmail.com PASSWORD: gamemlsite Upload Here: https://gameml.forumotion.com/GameML-File-Sharing-h3.htmPlease add only games.maybe an easy answer
2 posters
:: Game Making :: Game Maker Help :: Game Dev. Q&A :: 2d game Help
Page 1 of 1
maybe an easy answer
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
Re: maybe an easy answer
Put in ballon object.
Left Click Pressed:
Global Left Click:
Left Release or Global Left Release:
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
:: Game Making :: Game Maker Help :: Game Dev. Q&A :: 2d game Help
Page 1 of 1
Permissions in this forum:
You cannot reply to topics in this forum
|
|