tbe icon indicating copy to clipboard operation
tbe copied to clipboard

Set start direction of Pingus and Butterfly

Open Wuzzy2 opened this issue 9 years ago • 8 comments

There is currently no way to set the initial direction of a butterfly, it's always facing right.

For Pingus the starting direction appears to be … random? I have no idea how it works. It seems the only “safe” way is to place some obstacles to force a direction but this is not always what you want to have.

So I suggest to add some way in the editor to force the initial direction of a butterfly and a pingu.

Wuzzy2 avatar Feb 05 '16 18:02 Wuzzy2

I prefer to not think about this for this milestone, if you don't mind.

kaa-ching avatar Feb 05 '16 21:02 kaa-ching

I totally understand. Milestone B has lots of tasks already. ;-)

Wuzzy2 avatar Feb 05 '16 21:02 Wuzzy2

Setting the start direction of a butterfly is going to be hard - the direction is hard-coded in the Butterfly class and there are no images for flying to the left or flying stationary.

For Pingus, I'm thinking along the lines of making subclasses of Pingus called LeftPingus that walk left and RightPingus that walk right. The default Pingus class will then no longer be directly usable.

kaa-ching avatar May 24 '16 11:05 kaa-ching

Those two commits should bring us rather close for Pingus. Wuzzy, can you check if this satisfies your needs?

kaa-ching avatar May 25 '16 21:05 kaa-ching

Sorry, it doesn't seem to work in f72d737436b5dde2bb1b376329105fbe3340a08e. Sometimes the pingus just appear to turn around, just at the start of the simulation. So the initial direction is mostly useless. Maybe it has something to do with the drop height? No matter what causes this, the issue is obviously not ready to be closed yet. :/

Pingus should reliably walk left or right and not just randomly turn around after they dropped.

Do pingus maybe forget the direction they were walking as soon they fall? That might explain the problem.

Wuzzy2 avatar May 26 '16 00:05 Wuzzy2

Do pingus maybe forget the direction they were walking as soon they fall? That might explain the problem.

Yup. That's solvable, though.

kaa-ching avatar May 27 '16 07:05 kaa-ching

Done. For good, I hope.

kaa-ching avatar May 29 '16 13:05 kaa-ching

Penguins seem fine now, but what about the butterfly?

Wuzzy2 avatar May 30 '16 12:05 Wuzzy2