Home Tutorials Forums Articles Blogs Movies Library Employment Press
Old 04-17-2007, 12:23 PM   #1
Need an Intervention!
flashaddik's Avatar
Join Date: Apr 2007
Posts: 181
Cool [AS2] side scroller game code problem

i have a side scolling tank game i am building and need the bullet to fire from the end of the gun barrel. The problem is that the barrel rotates up or down depending on the _y that the mouse is centered. How do I get the bullet to follow the barrels rotation until after you fire? i can get it to follow the barrel now but after I fire the bullet, the bullet will still follow the mouse, so in essence moves up and down the screen when you move the mouse....

Any suggestions?
flashaddik is offline   Reply With Quote
Old 04-17-2007, 12:42 PM   #2
Fellowship of the Script
Join Date: Jan 2006
Location: the Netherlands / heading to the UK
Posts: 629

I think this would help:
FrodoBaggins is offline   Reply With Quote
Old 04-17-2007, 01:32 PM   #3
Need an Intervention!
flashaddik's Avatar
Join Date: Apr 2007
Posts: 181

that was a help thx.
flashaddik is offline   Reply With Quote

Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
an easy code problem... psch1 ActionScript 2.0 7 03-29-2007 06:56 PM
[AS2] Game problem bwaxse Gaming and Game Development 0 11-15-2005 03:06 AM
[AS1] CPU speed problem in my Flash tondeuse game xa4 Gaming and Game Development 4 12-15-2004 12:29 PM
Security policy file problem - code works in one swf but not another - port problem? elfranko Server-Side Scripting 0 09-23-2004 02:26 PM
level problem when put code in mc heero ActionScript 1.0 (and below) 2 07-18-2004 11:59 PM

All times are GMT. The time now is 07:39 PM.

Follow actionscriptorg on Twitter


Powered by vBulletin® Version 3.8.5
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Ad Management plugin by RedTyger
Copyright 2000-2013 ActionScript.org. All Rights Reserved.
Your use of this site is subject to our Privacy Policy and Terms of Use.