- Game Maker Community
- → Viewing Profile: Posts: mastajwood
mastajwood
Member Since 04 Oct 2011Offline Last Active Nov 06 2012 06:00 AM
Community Stats
- Group New Member
- Active Posts 52
- Profile Views 1242
- Member Title GMC Member
- Age Age Unknown
- Birthday Birthday Unknown
-
Gender
Not Telling
Posts I've Made
In Topic: ADJUST TIMING
06 November 2012 - 06:04 AM
Thanks. I'll try and do that. Don't use code much but I'll see if I can put everything in the right areas.
In Topic: LASER CHARGE
06 November 2012 - 06:02 AM
create a variable for ammo in your character, e.g. ammo, set it to 10
ammo = 10;
every time your character shoots, check ammo level and subtract one from it
if ammo > 0 then
{
//code to shoot laser here
ammo = ammo -1;
}
make a collision event for your character and the ammo clip object, and put this code inside:
ammo = 10;
Thanks for the quick reply. I'll give that a shot.
By the way, how do I do a energy bar for the ammo that is full but depletes once 10 shots have been used?
In Topic: ADJUST TIMING
06 November 2012 - 05:16 AM
Just set an alarm when the sign gets to the bottom, but set the alarm time to a random value
alarm[0] = irandom_range(150,300); //30 frames in a second, so adjust the min and max accordingly.
Then inside that alarm event, put the code to create your sign at the top.
Thanks for getting back with me. So what would the code look like to create the sign back at the top of the screen?
In Topic: How to make sprite animation stop at the end
15 December 2011 - 04:59 AM
Working loverock125 thank you
what if at the end of the animation, i got it to stop, but how do i destory it once it stops?
In Topic: HEALTH BAR ISSUE
20 October 2011 - 05:57 PM
i'm following you. okay, so i put the code in and i got this error.
FATAL ERROR in
action number 6
of Draw Event
for object object_controler:
COMPILATION ERROR in code action
Error in code at line 2:
0]+room_height-20,spr_healthbar)
^
at position 33: Wrong number of arguments to function or script.
FATAL ERROR in
action number 6
of Draw Event
for object object_controler:
COMPILATION ERROR in code action
Error in code at line 2:
0]+room_height-20,spr_healthbar)
^
at position 33: Wrong number of arguments to function or script.
- Game Maker Community
- → Viewing Profile: Posts: mastajwood
- Privacy Policy
- GMC Rules and Forum Rules ·



Find content