answersLogoWhite

0

How do you create an object at the tip of a gun?

Updated: 8/16/2019
User Avatar

Wiki User

16y ago

Best Answer

If you are drawing a rotated gun (with the draw_sprite_ext() function or other,) then this will be of some use to you: {
instance_create(lengthdir_x(
12,direction_variable),lengthdir_y(12,direcion_variable),bullet_object);
}
Change the arguments (text listed in bold) to best suit your needs. (If your gun has a Sprite width of 100 then change the number 12 to 100.)

User Avatar

Wiki User

16y ago
This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: How do you create an object at the tip of a gun?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Related questions

Is a firing pin in a gun pointed or blunt?

On a center fire gun, rounded tip. On a rimfire gun, the tip is shaped a bit like the tip of a screwdriver blade.


What makes a object tip?

if the centre of gravity is beyond the base (assuming no other supports) then an object will tip


Is it illegall to paint a Nerf gun?

Of course you can just keep the tip orange. The tip of the gun has to be orange because it is a federal law


Can you use a hot glue gun as a solder gun?

No the tip is wrong.


What is the orange tip for on the end of an air soft gun?

To indicate that it is a toy not a real gun.


What is meant by tip of the shadow?

The tip of the shadow refers to the point where the shadow cast by an object ends. It is the furthest point from the object where the shadow can be observed.


How big is the tip on a airsoft gun?

The tip is usually 1/2 to 1 inch big.


Can you get the orange tip out of a airsoft gun?

No. It is there for a reason. Leave it.


How do you clean a cap gun?

Use a Q-tip.


What makes an object tip over?

gravity


How would a 2D sword or gun be created in Game-maker 3D from first person view?

To make a 2D sword or gun and create it in Game-maker 3D from first person view takes a lot of steps. You will have to have drawings of the object, point to the object with the camera, run the program, and have collision detection and finally performing the object to what you want it to do.


How do you use a potato gun?

you stick the tip of the gun into the potato pull the trigger then its loaded then fire at will!