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.Get_color engine
4 posters
:: Game Making :: Game Maker Help :: Engines-
Page 1 of 1
Get_color engine
Here you learn how to choose your own color (for example: background and text).
make an object with a sprite (doesn't matter what kind of sprite) and by create type:
and in left pressed event type:
and in draw event put:
than put the object in the room and run it.
if you have any question tell me... (YYG: jora)
PS: i realy don't know how you can make that when the room starts the "choose the color" box doesn't pop up only when you click the ball... so if you know that tell me please !
make an object with a sprite (doesn't matter what kind of sprite) and by create type:
- Code:
c = get_color(c_black); //here you can choose the color you want to have for background
d = get_color(c_white); //here you can choose the color you want to have for text
and in left pressed event type:
- Code:
c = get_color(c_black);
draw_set_color(" + string(c) + ");
d = get_color(c_white);
draw_set_color(" + string(d) + ");
and in draw event put:
- Code:
draw_sprite(sprite0,0,x,y)
draw_set_color(d)
draw_text(300,64,'Hello want to get colors click the ball!#For Background color and for text color!')
background_color=c
than put the object in the room and run it.
if you have any question tell me... (YYG: jora)
PS: i realy don't know how you can make that when the room starts the "choose the color" box doesn't pop up only when you click the ball... so if you know that tell me please !
Re: Get_color engine
Kinda simple...
TheGameMaker- GameML Basic
- Posts : 67
Points : 54507
GameML Reputation : 5
Join date : 2009-06-05
Age : 30
Re: Get_color engine
to set the colors when you click on the ball, the left press event should be a global left press event with this code in it. the first line checks if the object meets itself at the mouse position.
- Code:
if position_meeting(mouse_x,mouse_y,self)
{
c = get_color(c_black);
draw_set_color(c);
d = get_color(c_white);
draw_set_color(d);
}
slayer 64- GameML Noob
- Posts : 20
Points : 54155
GameML Reputation : 8
Join date : 2009-07-05
Age : 34
Re: Get_color engine
cool! Thanks for adding to this slayer, when jora is on, he'll add to the topic.
Similar topics
» Movement Engine
» Pausing engine.
» An Amazing Pokemon Engine
» Save/Load Engine
» 3d/Admin's Blood Engine
» Pausing engine.
» An Amazing Pokemon Engine
» Save/Load Engine
» 3d/Admin's Blood Engine
:: Game Making :: Game Maker Help :: Engines-
Page 1 of 1
Permissions in this forum:
You cannot reply to topics in this forum
|
|