Jump to content


Photo
* * * * * 2 votes

Shooting A Bullet Out Of The Tip


  • Please log in to reply
66 replies to this topic

#61 Desert Dog

Desert Dog

    GMC Member

  • Global Moderators
  • 6409 posts
  • Version:Unknown

Posted 20 April 2011 - 02:27 AM

Still one of the best examples on this site. Good work!
  • 0

#62 dovonob

dovonob

    GMC Member

  • New Member
  • 172 posts

Posted 16 May 2011 - 11:45 AM

Wow after ages trying to grasp this lengthdir_x function I came across this 4 year old tutorial and within minutes it all made sense, thanks man you've really helped me with understanding it and how to use this properly.

big hugs, peace and love :D
  • 0

#63 BretHudson

BretHudson

    indie(Function);

  • GMC Member
  • 350 posts
  • Version:GM8

Posted 12 July 2011 - 10:36 PM

I wanted to give you my thanks, as I used this to help my friend out and today had to use it for my own project. I've had it bookmarked for quite some time now and was an excellent discovery. Thank you so much!
-Bretboy129 ~ Bret Hudson
  • 0

#64 curryassassin

curryassassin

    GMC Member

  • New Member
  • 1 posts
  • Version:Unknown

Posted 02 March 2012 - 06:55 PM

bullet_id = instance_create(x, y, obj_bullet);
bullet_id.direction = image_angle;
bullet_id.speed = 10;


If your turret is facing up (you want to shhot up) then you add + 90 this will go 90 degrees counter clockwise e.g

bullet_id = instance_create(x, y, obj_bullet);
bullet_id.direction = image_angle + 90;
bullet_id.speed = 10;


and if yours is facing down then add - 90

and if yours is facing left then add +180
  • 0

#65 TheLe

TheLe

    GMC Member

  • GMC Member
  • 114 posts

Posted 13 May 2012 - 04:08 AM

FREAKIN' AMAZING.

Thank you for the original post from 2007. Works great in GM8! Thanks!
  • 1

#66 borderline

borderline

    GMC Member

  • New Member
  • 2 posts
  • Version:GM8

Posted 14 May 2012 - 04:09 PM

Worked instantaneously, thanks!
  • 0

#67 nathan173

nathan173

    GMC Member

  • GMC Member
  • 39 posts
  • Version:GM:Studio

Posted 17 April 2013 - 11:43 PM

Ancient post, but I learned a lot. Thanks! :)


  • 0




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users