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 12-24-2010, 11:17 AM   #1
stilianos
Registered User
 
Join Date: Nov 2010
Posts: 16
Default [AS3] Hitboxes and Graphics?

I'm new to flash development, so far I can create classes and have it so there's a collision detection, there's a problem though, the hit-detection works on the basis of the entire movieClips size that is created. I could make it a weird way, or I could do it with hitboxes. I did this by making the movieclip with the graphics position equal the hitboxes position, this causes a problem because later down the track i would have to create a graphic entity and a hitBox entity.

So far I only really understand that when you create a class you choose which libraries go with it and which movieClip it extends from, the movieClip it extends from has the graphic already in it.

What I'm trying to say is how do i separate graphics from hitboxes in one single class?
stilianos 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


All times are GMT. The time now is 01:12 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.