Caterpillar Party at Different Speeds?

Ask and answer questions about making games and related topics. Unrelated topics go in that other forum.

Moderators: marionline, SDHawk

Post Reply
User avatar
Taco Bot
Meat, Cheese, and Silicon
Posts: 484
Joined: Fri Jul 18, 2014 12:15 am
Location: Santa Cruz
Contact:

Caterpillar Party at Different Speeds?

Post by Taco Bot »

For my game, the players will sometimes move at speed 2 or 10, different speeds than the default 4. The speed works, mostly, except that the spacing between members in the caterpillar party gets all wonky. At slower speeds, the party members walk way too close together. Is there any way to undo this with plotscripting?
Sent from my iPhone
User avatar
Bob the Hamster
Liquid Metal King Slime
Posts: 7460
Joined: Tue Oct 16, 2007 2:34 pm
Location: Hamster Republic (Ontario Enclave)
Contact:

Post by Bob the Hamster »

Unfortunately there is no easy way to fix this

You can plotscript your own caterpillar, but it will not be a simple script.

One approach would be to disable normal movement, and script your own movement when the player presses arrow keys

Then you would have to keep track of a history of the last 3 steps that the leader made so that the other heroes could repeat those movements.
User avatar
Taco Bot
Meat, Cheese, and Silicon
Posts: 484
Joined: Fri Jul 18, 2014 12:15 am
Location: Santa Cruz
Contact:

Post by Taco Bot »

Shucks, alright. :/ I might just disable caterpillar entirely for this game, since it isn't *really* that necessary.
Sent from my iPhone
User avatar
Bob the Hamster
Liquid Metal King Slime
Posts: 7460
Joined: Tue Oct 16, 2007 2:34 pm
Location: Hamster Republic (Ontario Enclave)
Contact:

Post by Bob the Hamster »

I really should make caterpillar stretch something that can be controlled as a built in feature, but I'll have to clean up a lot of code to make it happen
TMC
Metal King Slime
Posts: 4101
Joined: Sun Apr 10, 2011 9:19 am

Post by TMC »

My main motivation for overhaulling/rewriting the caterpillar party is support pixel based movement :)
Post Reply