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

Report as inappropriate.

Andres
Andres presents ...

2009/12/17

Dude Walking

Quick 20 min. idea i was trying where torso arms and legs are seperate objects.

Arrow keys to move, space to jump.

2856 views / 13 in the last 7 days

3 votes | 0 in the last 7 days

Tags: with-source

open in greenfoot
Your browser does not support the canvas tag.
A new version of this scenario was uploaded on Thu Dec 17 15:10:32 UTC 2009
AndresAndres

2009/12/17

Okie dokie, he doesnt move up and down anymore, and he reverts to standing when hes not walking. Ill rewrite the addObjects in the world later to put the limbs in the right spot... but im just working on trying to get him to die or something when he intersects with a rolling pumpkin.
Jesusgeek94Jesusgeek94

2009/12/18

why not just use different images and animate them instead of using different objects..?
bluedgbluedg

2009/12/18

yes, that would be rather better and easier
AndresAndres

2009/12/18

I always do. I'm in between semesters and i was just bored so I tried something new.
theDoctortheDoctor

2011/9/22

Pretty cool for a dude walking!
meazalplaqmeazalplaq

2014/12/2

Hello, I love the idea for this type of animation; however, when I download the scene and run it in Greenfoot, the arms and legs rotate in a circle. How would I fix this? Thanks,
danpostdanpost

2014/12/2

@meazalplaq, I have downloaded and ran the scenario and found the same issue. Being that it appears to work properly on the site AND that there is a check for 'getRotation() == -20' in the code (which today can never return true), it would seem that the implementation of 'getRotation' was changed between then and now. Today, it returns a value in the range of zero to 359; where at the time this was created, it would seem that it returned a range of -180 to 179. (this scenario was uploaded September of 2011 -- over three years ago, with probably one of the first versions of Greenfoot). If you start a discussion thread, I will post my corrected Torso class for you.
danpostdanpost

2014/12/2

@meazelplaq, read my last post. A correction: September of 2011 -- over three years ago should be December of 2009 -- about five years ago
meazalplaqmeazalplaq

2014/12/2

OK! Thank you. http://www.greenfoot.org/topics/find/47754#post_47754

See all comments

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

Who likes this?

birdy tika