Hi, been sometime since I posted here...
Okay strait to the point:
I'm having trouble getting my head around coordination system for a game. So lemmy explain a example;
I use panda3d which uses python, ofc i'm programming in python.
So the question. I want to create a coordination system for a game, which will take inputs from the PC(player) and then send the "space ship" to that direction, ofc not instant it will fly there over time...
Okay this all will take place in space as noted that we are flying around in a space ship. Now I don't know where to start.
I have to make an "invisible grid" which has blocks like sectors. Each with there own number or name or w/e. and this will be on x, y ofc.
Now the other thing is i thought I would put the Sun in the center, imagine our solar-system and the square will cover the whole "space" until about pluto so in your head see the grid. where the sun is in the middle. Now i need to init this thing (array/list/dict) and keep it safe, because later i'll have to add a checker which gives a false when the PC tries to enter random numbers. Meaning inside the space(and the grid) there will be a main story section like a tunnle which the player could only enter if he/she owns the data(the correct coords) other wise if they enter random number which happens to be inside that section the game would give some error in gui like "its out of bounds or w/e". but this doesn't stop them from actually fly to a random location.
So to come back after ^that... I'll say that I need to design a grid so that the player could enter "coords" and then move to that location. So how would I even start with this?
Thanks in advance