Suggestion: Named marks in rooms

Started by SSH, Thu 04/03/2004 12:54:59

Previous topic - Next topic

SSH

It's a real pain sometimes, swapping back and forth between rooms to get the right co-ordinates to NewRoomEx your charatcer into. It can also be a pain to keep lists of co-ordinates for other things you might need to position, such as during cutscenes.

So I suggest "Marks" (or a better name if someone can come up with it) which are named co-ordinates within a room. Kind of like walkto points for hotspots, but independent of Hotspots. Also, the marks end up actually as automatic #defines in your header. This way you can do:

NewRoomEx(4, NORTH_ENTRANCE_POINT);

and CJ doesn't have to make a whole bunch of new functions. They could be set by adding a "Add Mark here" option to the right-click menu.

What do you think?

Also, does anyone always use NewRoom instead of NewRoomEx and then have an on_event or before_fadein script that positions the player according to the value of player.prevroom ? Is that easier?

12

Ishmael

I think that's a good idea. I find the same problem quite often.

Quote from: SSH on Thu 04/03/2004 12:54:59
Also, does anyone always use NewRoom instead of NewRoomEx and then have an on_event or before_fadein script that positions the player according to the value of player.prevroom ? Is that easier?

I do that. I find it easier... And somehow more functional.
I used to make games but then I took an IRC in the knee.

<Calin> Ishmael looks awesome all the time
\( Ö)/ ¬(Ö ) | Ja minähän en keskellä kirkasta päivää lähden minnekään juoksentelemaan ilman housuja.

Pumaman

Yeah, I've been planning to do something like this for a while. Having to remember co-ordinates, and then work out what they refer to when looking at the script, isn't very user-friendly.

AndersM

#3
I agree... let's be a pain in the behind on CJ
untill he adds something like that, or why
not something like this instead:

(Before fadein) if you came from room 1, apear on x22, Y33...

well, you get the idea...

Ishmael

Quote from: MrMasse on Thu 04/03/2004 22:54:52
(Before fadein) if you came from room 1, apear on x22, Y33...

I'm doing that...

function room_a () {
// Player enters screen (Before fadein)
if (character[GetPlayerCharacter()].prevroom == [ROOM]) {
character[GetPlayerCharacter()].x = [X-coord];
character[GetPlayerCharacter()].y = [Y-coord];
}
}
I used to make games but then I took an IRC in the knee.

<Calin> Ishmael looks awesome all the time
\( Ö)/ ¬(Ö ) | Ja minähän en keskellä kirkasta päivää lähden minnekään juoksentelemaan ilman housuja.

SSH

If you read the last paragrpah of my first post, MrMasse... ::)

Anyway, it would still be handy to have a nice system like right-clicking to add in a #define automatically to the header... whether you use NewRoomEx or prevroom...
12

SMF spam blocked by CleanTalk