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!
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: http://gameml.iowoi.org/GameML-File-Sharing-h3.htmPlease add only games.
Create A GAMEML BLOG!
Make a Blog on GameML:http://gamemlblogs.wetpaint.com
Keywords


drawing (HELP!!!!)

View previous topic View next topic Go down

drawing (HELP!!!!)

Post by Vision123 on Wed Jul 22, 2009 5:30 pm

Ok, I've seen the "Draw" event EVERYWHERE in engines and stuff but i have NO IDEA WHAT IT MEANS! Question I don't get it, please explain what it does. Question
avatar
Vision123
GameML Noob
GameML Noob

Posts : 40
Points : 30333
GameML Reputation : 1
Join date : 2009-07-09
Age : 21
Location : dancin in the desert blowin up the sunshine

View user profile http://www.yoyogames.com/members/Vision123

Back to top Go down

Re: drawing (HELP!!!!)

Post by The Dark Ninja on Tue Jul 28, 2009 10:31 pm

i think it means when it is created draw (ex. you want do draw lives when he is created that is where you would put it)(it might meen when it is finish drawing itself it does what you put in there
avatar
The Dark Ninja
Super 500 GML
Super 500 GML

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

View user profile http://www.thedakninja.tastyhamgames.com

Back to top Go down

Re: drawing (HELP!!!!)

Post by Vivi_IX on Wed Jul 29, 2009 10:40 am

The Draw event works the exact same way as the Step event. The only differecne is that 'draw_' functions, such as draw_text(), can only be used in the Draw event.

When you put a function in a Draw event, it will be performed on EVERY step of the game.

GM Help File wrote:Drawing event
Instances, when visible, draw their sprite in each step on the screen. When you specify actions in the drawing event, the sprite is not drawn, but these actions are executed instead. This can be used to draw something other than the sprite, or first make some changes to sprite parameters. There are a number of drawing actions that are especially meant for use in the drawing event. Note that the drawing event is only executed when the object is visible. Also note that, independent of what you draw, collision events are based on the sprite that is associated with the instance.
avatar
Vivi_IX
Tres GameML Ninja
Tres GameML Ninja

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

View user profile http://www.yoyogames.com/members/Vivi_IX

Back to top Go down

Re: drawing (HELP!!!!)

Post by CarnivorousA on Fri Jul 31, 2009 1:22 am

But if you use it with a visible object it won't draw itself unless you tell it to.

_________________
avatar
CarnivorousA
Moderator
Moderator

Posts : 1402
Points : 32582
GameML Reputation : 17
Join date : 2009-06-01
Age : 23
Location : At the bottom of the lake.

View user profile http://entertainmypeople.freeforums.org/index.php

Back to top Go down

Re: drawing (HELP!!!!)

Post by Vision123 on Fri Jul 31, 2009 2:27 pm

Ok, I'm starting to get it, but what's the use? to like change the collision on the fly or something?
avatar
Vision123
GameML Noob
GameML Noob

Posts : 40
Points : 30333
GameML Reputation : 1
Join date : 2009-07-09
Age : 21
Location : dancin in the desert blowin up the sunshine

View user profile http://www.yoyogames.com/members/Vision123

Back to top Go down

Re: drawing (HELP!!!!)

Post by Vivi_IX on Fri Jul 31, 2009 2:40 pm

No, the draw event is used to "Draw" things onto the screen. In the GM help file's index search for "draw_" this will list all of the functions that GM can use for the draw event.

Example:(put in draw event)
Code:
draw_text(15,15,"PLAYER NAME HERE")
This code will "Draw" the words "PLAYER NAME HERE" on the screen at posision (15,15).


Last edited by Vivi_IX on Fri Jul 31, 2009 2:45 pm; edited 3 times in total (Reason for editing : To simplify the example)
avatar
Vivi_IX
Tres GameML Ninja
Tres GameML Ninja

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

View user profile http://www.yoyogames.com/members/Vivi_IX

Back to top Go down

Re: drawing (HELP!!!!)

Post by CarnivorousA on Fri Jul 31, 2009 7:14 pm

You can do lots of things with draw events. You just need to discover them.

_________________
avatar
CarnivorousA
Moderator
Moderator

Posts : 1402
Points : 32582
GameML Reputation : 17
Join date : 2009-06-01
Age : 23
Location : At the bottom of the lake.

View user profile http://entertainmypeople.freeforums.org/index.php

Back to top Go down

Re: drawing (HELP!!!!)

Post by Sponsored content


Sponsored content


Back to top Go down

View previous topic View next topic Back to top

- Similar topics

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