Bullet following mouse ??

thor6577

  • Posts: 189
Ok, what i want to do is find or make a behavior that lets you aim when you are shooting (based on Run and Gun game). Is there a behavior to do this or do i have to make it myself.

xmagicx60

  • Posts: 213
Ok, what i want to do is find or make a behavior that lets you aim when you are shooting (based on Run and Gun game). Is there a behavior to do this or do i have to make it myself.
I made one myself, its quite easy. Its not on forge though, its not very customiseable.

thor6577

  • Posts: 189
Can you post a screenshot of that behavior?

xmagicx60

  • Posts: 213
when I make a good one, I'll add it to forge, its rather simple.

thor6577

  • Posts: 189
Can you tell me how you did it at least/ what blocks you used

xmagicx60

  • Posts: 213
just have a push/move toward mousex/mousey


xmagicx60

  • Posts: 213
yea, the rotation is trickier, and I haven't fully figured it out...

EDIT: set it to point towards mouse pointer.

Grimreaper

  • Posts: 295
I've got one on stencyl forge that might help you out I don't know if its the one you looking for. To choose the actor you have to go to the behavior  and change it their I modified another behavior to make the one I got its called spawn bullet and move towards mouse. :) I decided I would put a snapshot of what it looks like in action the snapshot doesn't work very well but you get the jist.The projectile I'm using explodes on contact that's why it looks like it does.Also in this image you can see my bug where nothing does damage etc.

« Last Edit: August 12, 2011, 01:07:55 am by Grimreaper »
yesterday is a memory tomorrow is a vision, but today its a b_tch.