This site requires JavaScript, please enable it in your browser!
Greenfoot back

Report as inappropriate.

danpost
danpost presents ...

2015/4/27

Hitbox Visualizer

A visual display of areas that are checked by the various object detection methods included in the Actor class.

Buttons were added to combine the methods by getting the intersection (&&) and union (||) of the areas.

CONTROLS:
Click method selection box to activate or de-activate a method type;
Click method text to set focus on that method (if selected);
Use arrow keys to change method values (the actor values are used for the 'getIntersectingObjects' method);
Turn actor with 'a' and 'd' keys;
Rotate actor at 5 degree intervals with the 'r' key;
Mouse press on 'OR' and 'AND' buttons for showing union and intersection of selected areas.

5256 views / 21 in the last 7 days

2 votes | 0 in the last 7 days

Tags: demo with-source

open in greenfoot
Your browser does not support the canvas tag.
A new version of this scenario was uploaded on 2020-10-25 12:20:34 UTC
Roshan123Roshan123

2020/10/27

Nice tutorial I helped me a lot Thanks for making such type of scenario
A new version of this scenario was uploaded on 2020-10-27 15:01:54 UTC
Roshan123Roshan123

2020/10/28

Will u plz provide the source code
danpostdanpost

2020/10/28

@Roshan123, this is one I may eventually document and provide source. I am in the middle of updating those of mine that no longer run right now.
A new version of this scenario was uploaded on 2020-11-05 16:56:45 UTC
danpostdanpost

2020/11/5

Now documented and source available.
brendanpricebrendanprice

2021/3/14

where can i find the documentation? I would very much like to use hitbox visualizers in my scenario in order to see the hitboxes of my players
danpostdanpost

2021/3/15

@brendanprice, download, open in greenfoot and view documented codes in editor window.
brendanpricebrendanprice

2021/3/16

Thanks, im new to greenfoot and forgot about the documentation window.

See all comments

Want to leave a comment? You must first log in.

Who likes this?

Roshan123 lehrerfreund