Thursday, February 7, 2019

Stumped On Cart Teleport

Still stumped regarding the teleportation of the shopping cart but I did solve the wandering cart problem - when collision between Bag Boy and the shopping cart occurs I told the game to skip over the chase code for the shopping cart so that it wouldn't pull away and go after the car. I will have to fix the spawning of the second customer because I have noticed that they now meet off screen so I may make the second customer appear only when the cart hits a particular y-coordinate.  I still have not touched the car spawning code.  Once I do I will introduce other cars and determine how the cart will interact with the other cars.

I am thinking I may just have the cars alternate lanes at first but when the difficulty increases, I will have the cart chase the car with the greatest distance between them to provide more of an opportunity for Bag Boy to intercept.  I think I may also let the second customer get hit by the cars.

No comments:

Post a Comment

Manatee Madness!

Stage work is coming along nicely, with the foundations laid down for the Rain, Snow, and Volcano stage. The Black Friday stage is proving ...