Hi,
I got the idea, to make diagonal Rooms, so the edges of my Room are diagonal (just like the Diablo sight).
Now, my problems are: the Room edges (for changing rooms) and the Baselines for walkbehinds and a few larger objects.
For leaving a room a player must, as you know,Ã, walk over the rooms edges. Now, if my door is in the middle of the wall at the left top, the player cant use the part of the room wich is "behind" that edge (ie. the part of the room which is at the left of the door).
To fix it I could use Regions, I saw that in another Topic in this Forum. So its not the biggest problem.
For my Baselines the problem is getting a bit heavier:
If i got an object in the middle of my room, lets say a longer couch or table, it stands diagonal in the room. If I set the Baseline at the bottom of this object and the player stands behind it, everithing is Ok, but if the player stands in front of it, in the near of the top, ie. over the baseline, the object is shown over him!
So my Problem in a few words: are diagonal baselines possible?
thanks for reading this long textÃ, ;)
podthepunk
I hope my english is not too bad, so you could understand my problems.
EDIT:
I could use more than one Area for my Objects and Walkbehinds, right? But do I get in trouble with anything, if I would do that?
EDIT:
I wrote vertikal befor, but I now changed it in Diagonal. Cause this is what I mean.
Tracker entry: http://www.adventuregamestudio.co.uk/tracker.php?action=detail&id=448
CJ's reply & possible workaround: http://www.adventuregamestudio.co.uk/yabb/index.php?topic=13025
thanks for your answer.
In the german Forum (Adventure-Treff Forum) they told me a few solutions:
For squared objects in the backround, some like tables, its not a problem, anymore ( I just set the Baselines wrong, my fault).
For a few longer objects, like longer tables, I could split the objects into smaller "cubes", So I could use more walkbehids (2 or 3) and set the baselines individually for every cube.
For very long objects, like walls in the middle of the room, they told me I could use the repeatedly-execute (hope I wrote it wright).
podthepunk
I just tried to set the baseline of a Walkbehind area in a script in the room repeatedly execute.
So I thought it would get permanently the position of my player Character and set the Baseline:
here is my script:
Ã, // script for room: Repeatedly execute
if (player.x <= 158 && player.x > 168) {Ã, Ã,Â
Ã, Ã, SetWalkBehindBase (12,209);
}
else if (player.x <= 168 && player.x > 178) {Ã, Ã,Â
Ã, Ã, SetWalkBehindBase (12,204);
}
else if (player.x <= 178 && player.x > 188) {Ã, Ã,Â
Ã, Ã, SetWalkBehindBase (12,199);
}
else if (player.x <= 188 && player.x > 198) {Ã, Ã,Â
Ã, Ã, SetWalkBehindBase (12,194);
}
else if (player.x <= 198 && player.x > 208) {Ã, Ã,Â
Ã, Ã, SetWalkBehindBase (12,189);
}
else if (player.x <= 208 && player.x > 218) {Ã, Ã,Â
Ã, Ã, SetWalkBehindBase (12,184);
}
else if (player.x <= 218 && player.x > 228) {Ã, Ã,Â
Ã, Ã, SetWalkBehindBase (12,179);
}
else if (player.x <= 228 && player.x > 238) {Ã, Ã,Â
Ã, Ã, SetWalkBehindBase (12,174);
}
else if (player.x <= 238 && player.x > 258) {Ã, Ã,Â
Ã, Ã, SetWalkBehindBase (12,169);
}
else {
Ã, Ã, SetWalkBehindBase (12,0);
}
So why it doesn't work?
Did I make a mistake?
you know that you commented all those SetBaseline commands out, right?
If not, then remove thee "//"s before every SetBaseline!
EDIT: I meant SetWalkBehindBase commands, not SetBaseline!
Yes I know... now ::)
thanks
took away all the "//" but still doesnt work
EDIT:
if the player is in front of the wall he is shown in front, perfect!
But if I open the door and get behind the wall the player is also shown in front.
You also messed up the bigger or smaller ( < or > ) signs... your conditionals can never be true. change them around since < means smaller and > bigger...
^^
yeah, thats it!
it works!!!
Thanks a thousend times!!!