Jump to content


The Legend

Member Since 06 Aug 2011
Offline Last Active Yesterday, 08:38 PM

Posts I've Made

In Topic: How To Make An Instant Bullet

10 May 2013 - 10:37 PM

I need the collisions to work for every object, not just the enemies.

 

 

EDIT: I could use collision_line() if I could find what the location of the bullet will be. How would I do that?


In Topic: Will Gamemaker Ever Be Able To Export To Consoles?

10 May 2013 - 09:11 PM

Why? So Activision and Microsoft can laugh at our petty attempts to match up against AAA games?


In Topic: How To Find Collision Location

06 May 2013 - 11:14 AM

The bullet is 173x2, it's a long thin sprite ATTEMPTING to look like a bullet moving incredibly fast by its long, sleek shape.


In Topic: How To Find Collision Location

06 May 2013 - 12:16 AM

Can you show me a code for the drawing the line thing?


In Topic: How To Find Collision Location

05 May 2013 - 11:53 PM

Shooting:

if instance_exists(creator)
{
if creator.weapon="pistol" and can_shoot=true and creator=player_id
{
bullet=instance_create(x,y,bullet_obj)
bullet.direction=image_angle+random_range(gun_accuracy*-0.5,gun_accuracy*0.5)
bullet.speed=140
bullet.bullet_damage=gun_damage
bullet.image_angle=bullet.direction
bullet.maker=creator

{audio_play_sound(third_gun_sound,10,false)}
can_shoot=false
alarm[0]=8
camera_obj.x+=random_range(-25,25)
camera_obj.y+=random_range(-25,25)
sprite_index=pistol_aiming_spr
if creator=player_obj.id
{
creator.sprite_index=player_aiming_spr
}
}
}

 

Collision with wall:

effect_create_above(ef_firework,x,y,0.5,c_gray)
instance_destroy()