Game Problems 2

Non-platform specific questions.

Game Problems 2

Postby LucasA33 » Mon Aug 25, 2008 6:55 pm

How do you Add rooms?
What I mean is " When a Player Steps into a doorway, I want him to "Teleport"
Into the "Room" Making "Just the room" Visibal
LucasA33
 
Posts: 79
Joined: Mon Jul 21, 2008 12:17 am
Location: Science, Technology, Computers, Programming, and Robotics.
Score: 1 Give a positive score

Re: Game Problems 2

Postby asmodeus » Mon Aug 25, 2008 7:03 pm

mybe use this:
for example the room is on the place 0, 0 in the game (in the center of GE). That means the top left side of the room is on 0, 0.
You are anywhere in the world and you want the player go to the room, use this:
Code: Select all
player.x = // the x positon for the player in the room
player.y = // the x positon for the player in the room
view.x = 0; // this is the place where the room is
view.y = 0; //

I hope that will help you.
User avatar
asmodeus
 
Posts: 483
Joined: Thu Oct 11, 2007 5:04 pm
Location: Germany
Score: 43 Give a positive score

Re: Game Problems 2

Postby BlarghNRawr » Mon Aug 25, 2008 7:21 pm

again... coding, when move to is much easier...
Download Game Music
current projects:
Bold! ?% Started mechanics
Unnamed puzzle game 60% --i need a name!--
User avatar
BlarghNRawr
 
Posts: 767
Joined: Wed Jun 25, 2008 12:36 am
Location: Not using G-E anymore. Now using Source SDK.
Score: 27 Give a positive score

Re: Game Problems 2

Postby asmodeus » Mon Aug 25, 2008 7:22 pm

blarghNRawr wrote:again... coding, when move to is much easier...

again, you can do more in codes
User avatar
asmodeus
 
Posts: 483
Joined: Thu Oct 11, 2007 5:04 pm
Location: Germany
Score: 43 Give a positive score

Re: Game Problems 2

Postby Thanx » Mon Aug 25, 2008 8:51 pm

lol
There are always several different ways of doing something. Did you think you could even do it with a path??? :P :D
The point is, you have a room set up somewhere on the map, I assume you have that. In the end of the main menu's bar, the numbers show the coordinates your cursor is at in the map. Watching that, either use the code asmodeus gave you, or the MoveTo function; to direct your view and player to the places on the map.
http://www.youtube.com/watch?v=XyXexDJBv58
http://www.youtube.com/watch?v=Be4__gww1xQ
These are me and playing the piano (second one with a friend/fellow student)
Hope you watch and enjoy!
User avatar
Thanx
 
Posts: 314
Joined: Sat Jan 26, 2008 10:07 pm
Location: Home sweet home! :)
Score: 24 Give a positive score

Re: Game Problems 2

Postby BlarghNRawr » Mon Aug 25, 2008 8:56 pm

yeah...
thanx thanx...
hehehe
Download Game Music
current projects:
Bold! ?% Started mechanics
Unnamed puzzle game 60% --i need a name!--
User avatar
BlarghNRawr
 
Posts: 767
Joined: Wed Jun 25, 2008 12:36 am
Location: Not using G-E anymore. Now using Source SDK.
Score: 27 Give a positive score


Return to General

Who is online

Users browsing this forum: No registered users and 1 guest

cron