Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.

Topics - drounal

Pages: [1]
Support / visibility list
« on: May 28, 2006, 02:27:41 pm »
how come, when I move a 3DS imported cube on a map using the Paradroidz MouseMapper, I get this :

WARNING: You've exceeded the configured triangle limit for the visibility list. Consider adjusting Config.maxPolysVisible!

what I want to do is move a selected cube to a given point that I click on using the mouse.  As far as I know it shouldn't change the number of polygons ...

thx in advance.

Support / MouseMapper
« on: May 27, 2006, 12:25:35 am »
I'd like to make (and in fact I truly need for tomorrow) a MouseMapper. Here is my situation: I used the "car" example and tuned it by myself in order to create several cars instead of one (for example) or say that a given is "selected". Now I need a set of methods to be able to click somewhere in the windows and say "the car beneath my mouse is selected".

I ran through several posts that dealt with MouseMappers and got some code but I can't make it work with my own code. Help !!


Support / mouse controlled objects
« on: May 17, 2006, 11:31:56 pm »
Hey, another issue I need to work out.
how can I select object on the map using mouse1 (click and/or selection) and tell a given object to go where I click with mouse2 ?
thx in advance

Support / Another issue with the "car" example: moving the p
« on: May 16, 2006, 09:09:41 pm »
Here is the problem of the day.

I hijacked the PlantManager to create cubes instead of plants. I already found a way to create them wherever I want, but now gotta move them. To do this, I need to select them.

My guess was to use the array that is created in the manager. My "moveCube" fonction is in the CarTest file and needs to modify the cubes in the CubeManager ("Cube" replaces "Plant"). I wrote the function below to select the cubes:

   public Cube CubeSelect(int numero) {
       return cubes[numero];

but I can't use it in the CarTest file. When launching the game, it crashes with:
Exception in thread "main" java.lang.NullPointerException

my function looks a bit like this:

      public void moveCube(int num) {

      if (cubeleft) {
      if (cuberight) {

where cubeleft and cuberight are event. the problem comes from the "cubeMan. ..."

Any idea ?

thx in advance

Support / keymapper issue
« on: May 16, 2006, 07:14:56 pm »
I used the keymapper function given in the car example to perform several actions during the game. for example, I made it possible to build a cube when pressing key 'c' but each time two cubes are built: it seems like one is added when pressing the key and the other one when releasing the key. How can I change this ?
thx in advance.

Support / free camera
« on: May 15, 2006, 09:04:22 pm »
Hi everyone !

I'm a total beginner trying to make a video game using jpct. I used the sources of the examples to help me out and, so far, it works fine. but a problem raised with the camera.

In the "car" example, the camera is attached to the car: I want to set it free. For the moment, I removed the movement but I can't manage to make it move using the keyboard. Each movement done pressing a given key, is undone when releasing the key ...

Has anyone got a model or any hint ?

Pages: [1]