Game Development Community

How to limit

by RAPTER · in Game Design and Creative Issues · 05/26/2006 (1:38 pm) · 4 replies

How can i put boundaries in the map? this way i can only let the player roam around in a certain area and not get lost but the never ending map.

#1
05/26/2006 (3:33 pm)
Just set up the MissionArea object in you level with the editor. According to the docs, when the player enters/exits the mission area, two callbacks, namely onEnterMissionArea and onLeaveMissionArea, are triggered.
#2
06/06/2006 (6:32 am)
Can i just do that with only an object or do i need to put programming into it. In other words is the onEnterMissonArea and onLeaveMissonArea already in the code or should i program it?
#3
06/06/2006 (7:19 am)
You need to provide (script) funktions called onEnterMissonArea, onLeaveMissonArea that handles what you want shoudl happen when the player either leaves or enters the mission area.

In Battlefield (my favorit game) the user is shown a warning that they are deserting
and take penelty if they remain out side the mission area to the point when they die.

This is a nice way to restrict players inside the mission area because it doesn't
provide an "invisible wall" that the user cant get passed (which would be another
way to do it).
Invisible walls destroy the game illusion imho :-)
#4
10/05/2006 (9:31 am)
If it is an outside aria but fences or mountains to keep players in.