Hello!
I'm bored so I wanna write a post. This post: Events!
So I'm assuming this will be a long post so lets start now.
1.) Create
This event is instantly that object appears. close to the room start event.
ex.) hp = 100
2.)Destroy
This event does the actions right before the object is destroyed, so it still exists then after the actions it's destroyed.
ex.) score =+ 2
3.)Alarm
Alarms are used for timing. there is an action needed for this event called " set alarm "(you set the alarm then steps. In gamemaker 30 steps is one second). Basically you could put set alarm 0 for 30 seconds in the create event, then after one second the actions under alarm 0 will happen.
ex.) Timer; get to the end by a certain amount of time.
4.)step
The step event happens constantly. To be more precise, I think it's about 1/30th of a second, i think I read that somewhere. The begin and end step are rarely needed but begin step happen before the normal step and end step happen after the normal step
ex.)make the object look at the mouse
5.)Collision
this event happens whenever this object collides with another object.
ex.) obj_player collides with obj_wall will cause speed = 0
6.)keyboard
this is very similar to the key press event, to be honest, I never found a difference.
ex.)Moving
7.)Mouse
This is probably one of the most useful events. It includes left button pressed, left button, left release same with right, and more.
ex.)shooting to the mouse
8.) other
outside room- when the object goes out of the screen
intersect boundary- the object collides with the boundary of the room
views- boundary's & outside of views
game start- as soon as the game starts
game end- as soon as the game ends
room start & room end- happens when the room starts + ends
no more lives- gamemaker has a built in life system and this happens when lives equal 0
no more health- gamemaker also has a built in health system and this activates when health = 0
animation end- all sprites that have images have animation, and once that animation is done this event activates
end of path- this event works only with objects that have paths and once that path is done, this activates
close button- the close button the X in the corner of the window that you click to end the game
user defined- events when you decide and not gamemaker
9.)draw- this event is used to draw or show sprites,backgrounds, and whatever is under the draw tab
ex.)showing how much health is left
10.)key pressed- this event occurs whenever the button is pressed
ex.)start to move
11.)key release-this event occurs whenever the button is released
ex.)stop moving
12.)triggers- this event is only in standard and i still have lite, so i have no idea what it does. My guess is that it's kinda like an alarm.
Well that's all of 'em. well that took a long time. So I hope you learned something about this post and you can carry you knowledge to someone else. Good luck.
Happy Gaming
No comments:
Post a Comment