HEEEEEELP!
#1
Posted 21 October 2011 - 03:51 PM
#2
Posted 21 October 2011 - 03:58 PM
#3
Posted 21 October 2011 - 06:04 PM
Okay for those of you WHO HAS A GAME PAD!! I need help programming the action for button #2 where the player shoots bullets one by one, instead of him shooting like some crazy AK-47 holder!!! PLEASE HELP MEEEE!!!!
Do what RSPR1994 said. If you are using a variable to check if he's shooting then make sure you set it back to false when the first bullet goes.
Trivial: The AK-47 (Kalashnikov) can also be semi-automatic (you set it). Was wielding one of them when I was in the army
#4
Posted 21 October 2011 - 06:17 PM
Mouse Event Joystick 1 Button 2:
If ammo is larger than 0;
{
if sprite_index is equal to stand_left;
create moving instance of BULLET relative to (0,0) at the speed of 12 in the direction of 180;
if sprite_index is equal to stand_right;
create moving instance of BULLET relative to (0,0) at the speed of 12 in the direction of 0;
set varible ammo to -1;
}
#5
Posted 21 October 2011 - 07:54 PM
Or something like that
#6
Posted 21 October 2011 - 09:14 PM
Mouse Event Joystick 1 Button 2:
If ammo is larger than 0;
{
if sprite_index is equal to stand_left;
create moving instance of BULLET relative to (0,0) at the speed of 12 in the direction of 180;
if sprite_index is equal to stand_right;
create moving instance of BULLET relative to (0,0) at the speed of 12 in the direction of 0;
set varible ammo to -1;
}
I would suggest a timing loopput this in your step
//not actual gml
if timing=0 {
if ammo>0 {
{
if sprite_index is equal to stand_left;
create moving instance of BULLET relative to (0,0) at the speed of 12 in the direction of 180;
if sprite_index is equal to stand_right;
create moving instance of BULLET relative to (0,0) at the speed of 12 in the direction of 0;
set varible ammo to -1;
}
timing= time in seconds * room_speed
}
if timing>0 timing -=1
if this helped you press the reputation button
#7
Posted 21 October 2011 - 09:39 PM
http://gmc.yoyogames...howtopic=378771
#8
Posted 21 October 2011 - 09:41 PM
#9
Posted 21 October 2011 - 09:43 PM
okay is this GML or is it D&D? because i don't think its D&D (drag n drop) because the fact there is no timing action, I mean there's sleep, time line, and alarm actions, but the thing is that I don't see the (timing). so is this a time line action, alarm, or sleep action?
Please see my post. That should fix the problem.
0 user(s) are reading this topic
0 members, 0 guests, 0 anonymous users











