|
Feb 28, 2008 1:32am
shakirastarz
1 post
|
Can someone give me a tutorial or something for execute codes? I want to learn, and I am really new at this. I need an execution code for someone shooting a bullet and it loses 5 out of 100 health. Also there has to be a smal animation while it shoots.
|
|
|
Mar 6, 2008 8:46am
JoshSullivan
255 posts
|
This topic is in the completely wrong place.
.
http://www.unitedkingsstudios.com
.
|
|
|
Mar 7, 2008 3:58am
kopaka_nuva
38 posts
|
I suggest searching the Resource Packs on YYG, examples on YYG, or the tutorials and examples forum on the Game Maker Community, you might find something useful. Please post in the General Chat area next time, OK? 

|
|
|
Apr 7, 2008 5:58am
Slammin Sam
70 posts
|
CREATE EVENT OF VICTIM
{
healthamount=100
}
Collision event with bullet and victim
{
healthamount-=5
sound_play(ow_s)
}
CREATE EVENT OF SHOOTER
{
can_shoot=1
}
SHOOTING EVENT FOR SHOOTER
{
if can_shoot=1
{
nnn=instance_create(x,y,bullet);
nnn.speed=10;
nnn.direction=image_angle;
can_shoot=0
alarm[0] = 10
}
}
ALARM 0 EVENT OF SHOOTER
{
can_shoot=1
}
the animation depends on what you want to happens
Hope this helps you. Please play my games!
PM me if you need help with any Gamemaker.
|
|
|
Jun 7, 2008 2:40pm
recon940
7 posts
|
QuoteCREATE EVENT OF VICTIM
{
healthamount=100
}
Collision event with bullet and victim
{
healthamount-=5
sound_play(ow_s)
}
CREATE EVENT OF SHOOTER
{
can_shoot=1
}
SHOOTING EVENT FOR SHOOTER
{
if can_shoot=1
{
nnn=instance_create(x,y,bullet);
nnn.speed=10;
nnn.direction=image_angle;
can_shoot=0
alarm[0] = 10
}
}
ALARM 0 EVENT OF SHOOTER
{
can_shoot=1
}
the animation depends on what you want to happens
Hope this helps you. Please play my games!
FATAL ERROR in
action number 1
of Keyboard Event for <Space> Key
for object obj_player:
COMPILATION ERROR in code action
Error in code at line 5:
Collision event with obj_bullet and victim
at position 2: Program ends before end of the code.
IDK!
|
|