3D Rad - Free 3D game maker - Forum

This forum is now archived!

This forum is locked, and is a read-only version. A new community-ran forum can be found at classdev.net

News:

The 3DRad community can be found at classdev.net.

Pages: [1]

Author Topic: Change Sprite Position  (Read 209 times)

« on: March 19, 2014, 02:27:39 PM »
Hello guys.

I want write a Script for change Car Pictures Position according Standing in RaceTracker.
mean when the Player Standing is 1 Move Up and stand to Upper than other Pictures. but I need know how can check standing for enemy cars?

Thanks

My Game : Star Wars 1.0

http://behdadgame.com/index.php?topic=3.0

possible way, if we found will make a way.
« Reply #1 on: March 19, 2014, 03:15:16 PM »
What about using Transform object?, but you have to do a lot of work, or you can use a script. I don't know the exact script but you can make a simple script and it will work :)
See my web:
« Reply #2 on: March 19, 2014, 03:20:36 PM »
I wrote a script for change the Player Picture Position that can check standing and change Picture Position. but I don't know how can check what is enemy cars standing.
My Game : Star Wars 1.0

http://behdadgame.com/index.php?topic=3.0

possible way, if we found will make a way.
« Reply #3 on: March 21, 2014, 01:19:08 AM »
anyone have no idea for this work?
My Game : Star Wars 1.0

http://behdadgame.com/index.php?topic=3.0

possible way, if we found will make a way.
« Reply #4 on: March 21, 2014, 01:47:09 AM »
...but I don't know how can check what is enemy cars standing.

The racetracker has no such function. You can either add a racetracker object for each participating car or write your own algorithm to find the standing of each car.
Rocket Rumble, a 3D Rad puzzle game:
http://www.3drad.com/forum/index.php?topic=9896.0
« Reply #5 on: March 21, 2014, 01:28:19 PM »
Thanks Roberto this is good idea and work very well :D
My Game : Star Wars 1.0

http://behdadgame.com/index.php?topic=3.0

possible way, if we found will make a way.
« Reply #6 on: March 22, 2014, 02:31:46 AM »
I want begin working with array for change car picture Position according standing instead of create several int variables.
but when I use Array for move the Pictures don't work, but when I use int var work very well. can anyone say my why don't work array with this method?

Code: [Select]
   
   Playermove [0] = 0;
   Playermove [1] = 0;
   Playermove [2] = 0;

   if (IN_0 == 1 && PlayerPosition == 3 && Playermove [0] == 0) Playermove [0] = 1;
   
   // Move The Player Picture
    if (Playermove [0] == 1)
   {
      PlayerPos.y += 0.12;
      PlayerPosition -= 1;
      iPrint ("OK" , 0, 0 , OBJ_110);
   }

   // Change PlayerPosition
   if (PlayerPos.y >= 7)
   {
      PlayerPos.y = 7;
      Playermove [0] = 0;
   }

   // Set PlayerPosition
   if (PlayerPosition <= 1) PlayerPosition = 1;
My Game : Star Wars 1.0

http://behdadgame.com/index.php?topic=3.0

possible way, if we found will make a way.
« Reply #7 on: March 22, 2014, 04:36:07 AM »
Behda, don't make a post and PM me the exact same thing. That's just silly.
So I'll post my response here as well.

Well, you shouldn't put a space between the variable name and the brackets.

And I can't see what your declaration looks like. It should be like this (if I'm not mistaken, I haven't used 3D Rad in some time):
Code: [Select]
int[] Playermove(x)
Where x is the amount of dimensions.
Rocket Rumble, a 3D Rad puzzle game:
http://www.3drad.com/forum/index.php?topic=9896.0
« Reply #8 on: March 23, 2014, 02:53:33 AM »
Quote
Well, you shouldn't put a space between the variable name and the brackets.

I remove space between variable name and the brackets.but the Problem still exist.

Quote
And I can't see what your declaration looks like. It should be like this (if I'm not mistaken, I haven't used 3D Rad in some time):
Code: [Select]
int[] Playermove(x)
Where x is the amount of dimensions.

I define int[] Playermove(3) in above void main () as global variable.
My Game : Star Wars 1.0

http://behdadgame.com/index.php?topic=3.0

possible way, if we found will make a way.
Pages: [1]