Up until now, only the player's kart has existed, so I've been trying to place multiple karts on the track. Of course, due to the way MMF2 handles multiple instances of the same object, I've been forced to make each kart have a unique set of objects for the time being. (i.e. Racer 1, Racer 1 sprite, Racer 1 movement controller, Racer 2, Racer 2 sprite, Racer 2 movement controller, etc).
If possible, I'd really like to move away from this system since I'd have to create many duplicates of the code (Qualifiers present me with the same issues I had with a single Kart object). But even with fastlooping tricks, the karts don't want to behave independently from one another. <_< And for some reason, the Layer object isn't sorting the 3D sprites like it should.
Basically, this is the system I'm aiming for: I'd want a single object containing all of the racer sprites, along with a single Kart object that can be used for every racer on the track and a single Clickteam Movement Controller to handle the vector movement of every single kart. Afterwards, I'd want the game to be able to detect which of those Kart objects is controlled by which player (including CPU opponents) and have them read control input from the corresponding player or AI.
It's quite a tall order... but I'm wondering if there's any tricks I can use or third-party extensions that would help make this less of a headscratcher.
|