help getting to grips with flash

  • Bozebo
  • Expert
  • Expert
  • User avatar
  • Posts: 709
  • Loc: 404

Post 3+ Months Ago

Hi, I have decided it is about time I learn to use flash. I am working on a simple sidescrolling shooter as my first flash project.
I managed to make a nice vertically moving player ship but I can't understand how to properly make "classes" so that I can have many instances of one object, I thought I was doing it right but what I have attempted is not working at all.

Firstly, I am using Flash 8 and AS 2.
What I have tried to do for the bullet is set up a symbol as a movie clip that is exported for actionscript 2. This allows me to spawn them where I want when the player shoots using
Code: [ Select ]
 
_root.attachMovie("playerBullet","playerBullet"+this.bulletsShot,_root.getNextHighestDepth());
 
  1.  
  2. _root.attachMovie("playerBullet","playerBullet"+this.bulletsShot,_root.getNextHighestDepth());
  3.  


But the way I am trying to set up the bullet symbol's members and methods isn't working; I intend on them moving right at a set speed and deleting themselves when they go past 400 in the x co-ordinate.

I have uploaded my fla for you to take a look at.

Thanks.

Post Information

  • Total Posts in this topic: 1 post
  • Users browsing this forum: No registered users and 5 guests
  • You cannot post new topics in this forum
  • You cannot reply to topics in this forum
  • You cannot edit your posts in this forum
  • You cannot delete your posts in this forum
  • You cannot post attachments in this forum
 
 

© 1998-2014. Ozzu® is a registered trademark of Unmelted, LLC.