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 - clown611

Pages: [1]
1
Projects / Billy in space
« on: September 18, 2017, 09:16:14 pm »
In my Android course in school I created a game using JPCT. It's not perfect neither bad but I was thinking that I could share the sourcecode to help others.

Here is the game:
https://play.google.com/store/apps/details?id=com.mikaelquick.billy.space

Here is the source code:
https://bitbucket.org/mikaelquick/spacebilly

If you want to give me some hardlove on my code I will gladly appreciate it.


2
Support / Collision help
« on: March 18, 2017, 02:34:16 pm »
Hi I been trying to figure out this by myself but cant manage to figure it out. To pick up objects in my game I have implemented the collisionlistener, it worked out fine. But now when I want to make my planets solid I have tried to check when im colliding with them. But the listiner is only responding when the camera hits the object.

Code: [Select]
Object3d spaceship = a loaded 3ds modell
Object3d earth = a loaded 3ds modell

spaceship.setCollisionMode(Object3D.COLLISION_CHECK_SELF);
earth.setCollisionMode(Object3D.COLLISION_CHECK_OTHERS);

 earth.addCollisionListener(this);

Here is a video so you can see what I mean.

https://youtu.be/dmrYE05Q3MA


3
Support / Transparent tips
« on: March 13, 2017, 07:56:53 pm »
Hi again friends, I bought a model from fiverr with a transparent part. When I loaded in the model there was no transparency. I splitted upp the modell and used the transperancycommand to make it transparent and then put it on the other modell. Is this a bad way? or do you have another way of doing this?

4
Support / Troubel with the rotation/movement
« on: February 12, 2017, 11:14:37 pm »
Hi again friends. I have some problems with my flying spaceship. The goal is to fly around in space by rotating up,down,right. I have limit the spaceship on the x so it wont rotate because I had some camera issues when it did that. I start with posting videos of my problem.

https://www.youtube.com/watch?v=E4LPfoJZoxQ&feature=youtu.be

This is the spaceship moving along the Y.

https://www.youtube.com/watch?v=dIpUXWer5as&feature=youtu.be

And here it is moving along the X.

But when I tries to combine the following methods it goes like this.

https://www.youtube.com/watch?v=LR7vk2gSTkA&feature=youtu.be

I think I understand the problem and I think I have to rotate the spaceship so it's straight before I make it go up and down.
This is my code:

  if(rotatingUp){

            counter++;
            rabbit.rotateX(-0.01f);
           

            if(lastY > mostUpSpaceShip){
                isRotatingDown = true;
                rotatingUp = false;
                moving = true;
            }

 if ( rotatingRight){
            rabbit.rotateAxis(c.getYAxis(),-0.01f);
  if(lastX > rightOfSpaceShip){
                rotatingRight = false;
                moving = true;
            }
}

5
Support / Directions detect?
« on: February 09, 2017, 12:21:44 am »
Hi again. Im making a game with a spaceship that moves around in space. I controll my spaceship with translate, but when I rotate my ship towards another direction ofc the translate movement doesnt apply on my spaceship. How do you handle this? Is there a way to detect directions or should I make my own method depending on how much I have rotated?

6
Support / Make the camera follow an object3d
« on: February 05, 2017, 01:46:31 am »
Is this possible? Or how should I do this? I have a spaceship that is a loaded modell into a object3d, I want this spaceship to be in the center of my camera at all times. How do I do this?

7
Support / Rotation Tips
« on: February 04, 2017, 01:18:50 pm »
Hi there im making a spaceship game, I started out with rotate my ship to the angel I wanted it, and I realised that the rotationnumber is just increasing instead of being a certain number. This got me thinking, im controlling my spaceship with translate and rotate, but I dont want it to be able to rotate 360. How would you smart people do this?

8
Support / Android Studio install
« on: February 01, 2017, 09:48:21 pm »
Hi friends how do I install Jpct on android studio. I guessing that im addding the jarfiles but dont I need the native files? And how do I do this?

Pages: [1]