I'm trying to modify the tofudemo tutorial to allow the character to
throw fireballs.

I created a Fireball class witch is a subclass of Mobile. When the
player hit a key my programm create an instance of Fireball and add it
to the level.

if action and (action.action == ACTION_FIRE):
        fireball = Fireball()
        self.level.add_mobile(fireball)

This work perfectly in tofu single mode but in client-server mode, when
self.level.add_mobile(fireball) is called the client quit whith the
folowing error
exceptions.AssertionError: Level sent with non-level unique !
* Tofu * Connection lost: Level sent with non-level unique !

What does that mean ?

Souvarine.

_______________________________________________
Soya-user mailing list
[email protected]
https://mail.gna.org/listinfo/soya-user

Reply via email to