GMLscripts.com

Discuss and collaborate on GML scripts
Invert

You are not logged in.

#1 Off Topic » Question on Game Maker 8 » 2009-06-15 18:24:28

edy
Replies: 1

whistle
anyone no when game maker 8 will be ready for download
whistle

#2 GML Code Help » gml script test chance dice have no clue » 2009-06-10 11:14:47

edy
Replies: 1

whistle

gml script test chance dice

up to 8 sides

how can i set this up

example

what someone would find in a treasure chest
the dice would say
like
side 1 would be apple
side 2 would be note
side 3 would be candle
side 4 would be gold
from 5 to 8 note says empty

when you click on the treasure chest
if dice is 3 then gold in the treasure chest you see gold
if dice is 5 then a note would say empty

i have the apple, note with message,candle,gold, note that says empty

script can also be used for
if someone steps on something
it will say you found a ruby and you see its under your feet -----or nothing will happen

do i need to start with create first
then use the mouse left button
i have no clue on how to set it up right.

whistle    From Edy

#4 GML Code Help » Edy on random script and clock script » 2009-06-09 10:46:04

edy
Replies: 2

whistle
I need help with a script

random 20 objects 

example i will have gold if someone clicks on a treasure box
it would say either no gold or you found 10 gold pieces.
if they found 10 gold pieces they would be able to pick it up
and drop it into there money bag.
and the money bag would keep track of how much money is in there money bag.
if they buy something it would be subtracted out of the money bag
you have this left in the money bag.


plus the same way with food, like they found and apple
they could pick it up and drop it into there food bag.
and the food bag would keep track of how many apples are in the food bag.
if they eat one then the food bag would subtract it out of the food bag
you have this left in the food bag.

plus they have so many sips up to 3 sips of water
each sip would be subtracted from the canteen
you have this many sips left.
i sip is one good drink

plus   if they have a candle they would be able to light it,
and it will stay lite for  5 minutes.
after 5 minutes the candle will melt,
and they would have to get another candle and lite it.


plus set a clock every 20 minutes the room goes dark like night time

can a few people help me with this

From Edy
whistle

#5 GML Code Help » Edy How To Save Each Level on the puzzle game » 2009-06-08 19:33:10

edy
Replies: 1

whistle   
I would like people to be able to save, the levels they do on the puzzle game,
so they can go back to that level, and finish it if they have to....
anyone know how to write a script, for that let me know,
they need to be able to load  what they have saved.
From Edy
whistle

#6 Re: GML Code Help » AIR BALLON HELP » 2009-06-07 11:16:47

edy

ohmy  i must of put something under the code script

wink   xot
thanks for your help i will be making puzzles,
from the photos i take, in my state Maine.
when i get done, i will send you the puzzles.
don't no if you ever been to Maine or not,
but you will see some great photos by putting
the puzzle together.
thanks again have yourself a Sun Shinny day
From Darcy / Edy
cool

#7 Re: GML Code Help » AIR BALLON HELP » 2009-06-06 23:57:50

edy

whistle
i do understand that the four sections of that code go into the
Create, Step, Mouse Left Pressed, and Global Mouse Left Released
events

the whole script will not work

Code:
// CREATE
drag = false;
dx = 0;
dy = 0;


Code:
// STEP
if (drag) {
    x = mouse_x + dx;
    y = mouse_y + dy;
}


Code:
// MOUSE LEFT PRESSED
drag = true;
dx = x - mouse_x;
dy = y - mouse_y;

Code:
// GLOBAL MOUSE LEFT RELEASED
drag = false;

whistle

#8 GML Code Help » AIR BALLON HELP » 2009-05-26 16:03:51

edy
Replies: 4

:(This script will not work....
what i need is to be able to click on my air balloon...
and drag it any where i want to drag it.
Need help
Thanks
sad

From Edy
edy@gwi.net


/*
**  Usage:
**      move_to_mouse()
**
**  Arguments:
**      none
**
**  Returns:
**      nothing, but moves the calling instance
**      to the position of the mouse
**
**  GMLscripts.com
*/
{
    x = mouse_x;
    y = mouse_y;

Board footer

Powered by FluxBB