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

Report as inappropriate.

danpost
danpost presents ...

2015/1/8

GQActor Superclass Demo

Demo of my GQActor superclass which extends my QActor class.

The QActor class gives its actors smooth movement and rotation.
The standard GActor class gives its actors a gravitational pull downward.
The GQActor class does the same as the GActor class, except it is specifically designed to extend the QActor class.

Together, very little code is needed for an actor subclass.

Use the bars along the top of the window to change the settings by mouse clicks and press-holds inside and outside the bar frames -- right side to increase or maximize and left side to decrease or minimize. Changing the gravity or jump force values without changing the other in the same direction may cause an imbalanced state (either no jump or an outrageously large jump).

Use 'left' and 'right' arrow keys for horizontal movement.
Use 'up' arrow key for jumping.

3736 views / 23 in the last 7 days

1 vote | 0 in the last 7 days

Tags: physics demo with-source gravity drag danpost support smooth-moving

This scenario is a member of: Support Classes by danpost


open in greenfoot
Your browser does not support the canvas tag.
danpostdanpost

2015/1/11

Sorry, guys. The 'touching' method will not work as documented and does not do what I had intended as is. When I get a chance, I will update the scenario (hopefully, with what I wanted).
danpostdanpost

2015/1/11

NVM. The 'touching' method is correct as is. I must of had a brain-fart when I said it needed fixed.
A new version of this scenario was uploaded on 2017-03-12 17:35:46 UTC
A new version of this scenario was uploaded on 2020-02-28 14:13:12 UTC
danpostdanpost

2020/2/28

What the heck? What's up with the background color? Hold on now.
A new version of this scenario was uploaded on 2020-02-28 14:26:03 UTC
tarab2002tarab2002

2020/2/28

This game is really interesting I like how you can make the man jump and move at the same time!
22MoxhamA22MoxhamA

2020/2/28

I think this game might be unfinished but it's getting to the point of being finished I hope!
nabruzzinabruzzi

2020/2/28

entertaining to make the character jump around but there should be a goal to accomplish for the game.
danpostdanpost

2020/2/28

This is not intended to be a game. It is a demo that uses multiple support classes that can be re-used by those who may want to produce games having behaviors these support classes provide.

See all comments

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

Who likes this?

ds06