Hi, I'm programming a little test game, based on the tofu demo. It's been going quite well so far: I managed to model and add my static elements and have players interact with them (by clicking), but other things haven't gone so fine.
In the game, fruits are to be spawned on trees and they must drop (fall and collide with the ground) when the tree is shaken by a player. Players are supposed to interact with these fruits eating them (fruits should disappear when eaten and get respawned after a while). I have other items in the game that will have user interaction, like mud which can be picked up and thrown at other users to slow them down. I'm not sure as to what classes I should use for these objects, and how to manage their events as the events are triggered by Player interaction but "executed" or done on the object or other player. Reading the tofu code I guessed I might use tofu.RaypickCollidedMobileWithGravity for the falling fruits and maybe tofu.AnimatedModel for the trees but couldn't get far. I haven't even been able to get my "interactive" models displayed on the scene. Is there any documentation or other code examples appart from the tofu code and demo to study? A short snippet describing how to add such an object in a scene would do most of the trick :) Thanks, Nico. _______________________________________________ Soya-user mailing list [email protected] https://mail.gna.org/listinfo/soya-user
