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

Pages: [1]
1
Support / Simple Game Bones-android game
« on: February 09, 2014, 09:01:06 am »
Hello!!
Firstly Thanx to this forum which helped me lot. Now I want to make a simple game in which ninja character( downloaded Bones-android ninja from your forum) continuously walks on the road( like temple run)  and avoids obstacle. this is the basic funda or a concept of the game. I have made a basic fighting game using JPCT-AE. There is a much difference in the concept.

I don't know what is the  concept or the games in which character moves in some area or in some castle etc. How such process is carried out??? or if I come to the point of game which I want to make how I would be able to seem ninja moving or walking on road?? Does such thing could be carried out through camera movement.

I have loaded a 3ds road and tried to give its movement on z axis :P( I know doing a silly try)

Please help me to get out of this.

Thanxx in advance.. :) :) :) :) :)

2
Support / Bounding screen limit
« on: January 28, 2014, 03:02:15 pm »
Hello Sir!
Sir, I am working on an android game. Firstly, I have made collision between characters through collision detection method of JPCT-ae.
but it was not satisfying. Now I have carried out it based on action and distance between character as follow:
Code: [Select]

SimpleVector dist=ninja_cpu.getRoot().getTransformedCenter(). calcSub(ninja_user.getRoot().getTransformedCenter());
if (animation_user==2 && dist.length()<3.5*NinjaWidth){
 BattryLevelUSER.setProgress(counter_user--);
}

and similarly for opponent
Code: [Select]
SimpleVector dista=ninja_user.getRoot().getTransformedCenter(). calcSub(ninja_cpu.getRoot().getTransformedCenter());
if (animation_cpu==2 && dist.length()<3.5*NinjaWidth){
BattryLevelCPU.setProgress(counter_cpu--);
}
It works fine sometime but  sometime it doesn't works( seems if condition doesn't get satisfied properly.
 
For bounding the screen limit( character should not move outside of the screen) I have used following logic
Code: [Select]
if(ninja_user.getRoot().getTransformedCenter().x<220)

{
  if(ninja_cpu.getRoot().getTransformedCenter().x+ 3.5*NinjaWidth < ninja_user.getRoot().getTransformedCenter().x)
  ninja_user.getRoot().translate(-5,0,0);
This for cpu ninja whreas for user to move left
Code: [Select]
if(ninja_user.getRoot().getTransformedCenter().x > locationofcpu)
{

//if Ninja is greater than 100 bring it in 100

if(ninja_cpu.getRoot().getTransformedCenter().x<=-150)
{
ninja_cpu.getRoot().translate(10, 0, 0);
}
  and to move right
Code: [Select]
if(ninja_user.getRoot().getTransformedCenter().x > locationofcpu)
    
{
//if Ninja is greater than 100 bring it in 100
if(ninja_cpu.getRoot().getTransformedCenter().x>=200)
{
ninja_cpu.getRoot().translate(-10, 0, 0);
}

}
This sometimes give satisfactory result whereas some times wrong. I don't think I am carrying out it in a proper way. I am testing this on my Samsung Galaxy Ace but in some other device it doesn't gives satisfactory result. i am using progress bar as battery.

Pages: [1]