Home Tutorials Forums Articles Blogs Movies Library Employment Press

Go Back   ActionScript.org Forums > General > Gaming and Game Development

Reply
 
Thread Tools Rate Thread Display Modes
Old 04-17-2007, 12:23 PM   #1
flashaddik
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
FrodoBaggins
Fellowship of the Script
 
Join Date: Jan 2006
Location: the Netherlands / heading to the UK
Posts: 629
Default

I think this would help:
http://www.actionscript.org/resource...101/Page1.html
FrodoBaggins is offline   Reply With Quote
Old 04-17-2007, 01:32 PM   #3
flashaddik
Need an Intervention!
 
flashaddik's Avatar
 
Join Date: Apr 2007
Posts: 181
Default

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


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 12:38 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.