Hello, I am programming a game and I have come across a spot that confuses me. Let me give you a rundown of the game first.
The game is a RolePlaying game, and it is going to be fully player-run. Each player will have their own role in the game, and this is where I come to the problem.
There are many classes to choose, one of which is a Navigator. With this class, people that sail the seas can hire you, and you keep them away from dangerous currents that could get you lost at sea, leaving you to drown or starve.
Our idea is to have currents that will lead you in the wrong direction. The Navigator will see these currents as lines, or arrows, or something of the sort, that no other class can see. Can anyone help me with this? I have seen it done before(Certain people seeing things that others cannot), but I do not know where to start with either category.
ID:157116
May 15 2010, 2:00 pm
|
|
In response to Skyspark
|
|
Ok, thanks. This helped a lot with the problem of the Navigator being able to see it.
|
There are probably two ways to go about doing this. The first is to make use of the "invisibility" variable. If the lines/arrows are invisible, the navigator can be allowed to see them using the see_invisible variable, or similar. The problem with this idea is that it's often hard to use invisibility for more than one type of thing. If you want something else (that might need invisibility more) to use that variable, then the navigator might have to be able to see that something else too.
The other way is to use images. Images can be displayed/hidden/moved around, etc, on a per-player basis. The problem with images is that they are quite dumb. They're a bit more complicated to use and there's usually a little more work programming them. Images have to be specifically set up and removed and they also aren't real objects, so you can't Bump() into them, for example.