I believe I have the first part of the code right, but I'm not sure what to put next.
if(instance_number(OBJ_Bullet) == 0){
;
}
I think there's a can_shoot function or something like that, but I'm not sure how it goes. As for shooting based on the direction you are turned, I'm not sure how...
I'm trying to make my obj_player do shooting animation when i press left mouse button but it doesnt work. Other animations work well but not this :/ I change sprite_index only in these events:
Player step event:
//Animations
if (hsp != 0) image_xscale = move;
if (place_meeting(x,y+1,obj_wall))...
I cannot for the life of me make my bullets shoot in the direction I am facing. direction = image_angle does not work and I have tried tons of different things.
This is my players step event.
//Get the player's input
KeyRight = keyboard_check(ord("D"))
KeyLeft = -keyboard_check(ord("A"))
KeyJump...
Hello. I have a problem with making my enemy continue its path after stopping. When the player is near, he stops then shoots towards the player's direction. I can't make him continue its movement after the player leaves the 'canShoot' range. Please Help! Here's what i've done so far:
Enemy Step...
so i'm having a problem with my enemies shooting at my character once i spawn i just get pounded by bullets like there should be some time between shots but right now they are shooting like 50+ bullets per second it actually looks like a laser anyway hopefully someone can help me.
my stuff...
GM Version: GM Studio
Target Platform: Computer (Non-mobile device)
Download: https://drive.google.com/open?id=0B7FHueVA3nIGZ2ZmaUw4cjlWY0E (This is source code)
Links: https://www.youtube.com/playlist?list=PLqyLkr5WwLN_jvBtZ775Hxcd6vELwlvJb (This is the playlist)
Summary:
In this YouTube video...
Hello,
today, I stuck on the way we shoot, I search issues, but no one fits.
Here is the problem.
[see attached file]
I think the problem is the image's coordinates stays the same even if she is angled
I need help with my players shooting movement. I have the right side down how do I make him shoot to the left
https://lh3.googleusercontent.com/o8kRRlYhIXJaBCLHQ41qGIseAOlrRLvW6fnE2KFW5yvMq1SNwBIf1Mur_LW3RetP97pfJg=s133
I have been trying to write a enemy ai system for my space shooter game. However, the recent ai systems I have wrote for my other games are not giving me the result i want. Can some1 please write a enemy ai system where the enemy shoot at my player(i already have the enemy chasing the player)...
Right now this is the code that handles all of the player's bullets in my game, and I really need a new one:
if (vspeed > -bspd) speed += bspd;
if (speed > bspd) speed = bspd;
var col;
var segments = speed div sprite_get_height(obj_pbullet.sprite_index);
for(var i = 0; i <= segments; i++)
{...