Hi,

I've been working on a simple scorched earth-like game for the last few
days to help me learn CEL and python. I have some questions I haven't
been able to answer so far. Here's a screenshot of the billboard
interface some of my questions refer to:
http://tfric.learnkanji.ca/dump/cannonController.jpg The arch is used
for setting the cannon's angle and the bar is used for setting the
shot's strength. The white arrow is a separate billboard that always
points at the last place clicked along the bar. The interface is working
but it's not as versatile as I'd like. Questions:

1. In the game I plan to have several cannons each with their own
billboards for controls. To place them I need to find the screen
coordinates of the center of the object. Is there a function somewhere
that does this? If not can someone point me to the functions I will need
to cast a ray from the object to the camera and find out where it
intersects the near clipping plain?

2. So far I have been creating all my entities in Blender2CS and running
the game from there. It is also working from celstart. Is there any way
to use a debugger from either of these? I'm new to python and want to be
able to examine what entities I have in memory so I don't have to ask
here when I can't find them (see q. 3)

3. How do I get the billboard manager inside of a behaviour? I want to
move the white arrow to a layer above the red/yellow/green bar in the
interface. Currently most of the arrow is hidden. I have had no luck
with the "layer" attribute in the b2cs interface or the functions listed
in the API.

4. I plan to have multiple cannons with multiple controls for each
player. All that will differ between them is the behaviour for AI
players, the materials for all cannons and the names of the interface
billboards for all cannons. Is there an easy way to duplicate an
existing entity in the code or do I have to do it using blender? I would
like to have arbitrarily many cannons so duplicating them in blender may
be a hassle.

That covers it, sorry for the rather long email. I hope some of you are
still reading and if you are, thanks! I hope these questions aren't too
noobish but I couldn't find any python examples covering them.

TF


-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Cel-main mailing list
Cel-main@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/cel-main

Reply via email to