You are not logged in.
Pages: 1
anyone no when game maker 8 will be ready for download
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.
From Edy
thank you i will find some one
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
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
i must of put something under the code script
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
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;
:(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
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;
Pages: 1