I tried all the ways i found and none work please help. I want the player to attack while moving its that simple but i cant do it for some reason. I'm new to Game Maker Language!
Asked
Active
Viewed 137 times
0
-
2Would you mind sharing what you've got? I may eventually help with this. – Steven Oct 18 '17 at 14:57
-
1Questions seeking debugging help ("why isn't this code working?") must include the desired behavior, a specific problem or error and the shortest code necessary to reproduce it in the question itself. Questions without a clear problem statement are not useful to other readers. See: How to create a Minimal, Complete, and Verifiable example. – Rob Mar 27 '18 at 18:14
1 Answers
0
Create a sprite(like a dragon)
create 4 layers of that sprite(1: Stable dragon, 2: Dragon charging breath + ready to flap, 3: dragon firing + flapping, 4: dragon fired + flapped)
create an object for that sprite
create a create event and drag code
use these:
image_index = 0; image_speed = 0;
+ in movement; gravity event( angle -90, power : 1)Create a global left click event and use this code :
if(image_index == 0){image_speed = .3; "create a fireball etc" vspeed = 10; hspeed = 10; }
Create a Animation End event in other and use these :
image_index = 0; image_speed = 0;
this is an easy way to make a dragon which moves like a flappy bird while shooting fireballs. You can sample this to create a moving object who shoots.

ZozeR
- 78
- 1
- 10