Basic question on entering a new room

Started by GT, Wed 22/06/2005 19:15:15

Previous topic - Next topic

GT

 ???Hi there,
I have just joined the forum and am attempting to create my first adventure game.
I know that you have to read the forums and guides before posting here, (which I have done) but I haven't been able to solve this problem.

I have no knowledge of scripting or making computer games, although I have always really wanted to make one since playing the early Sierra games.
The game I am trying to create is quite basic at the moment, all I am trying to do is go from one room to the next and looking at different hotspots and displaying different messages.
I am finding it quite fun but currently have a problem where the character appears on a non walkable area when entering a new room.
The solution to this problem in one link on the site is:

From the manual:
NewRoomEx

NewRoomEx (int room_number, int x, int y);

Identical to NewRoom (see), except that the player character is placed at coordinates (X,Y) in the new room.

Example:

NewRoomEx(4,100,50);

will move the player character to room 4, at coordinates 100,50.

but this means nothing to me as I have no knowledge of scripting.
I have tried to put this message into the (i) button under the room settings but I think that it needs something else to activate it.

Basically I need to know how to change the X and Y position of the character in the room that isn't the first one.
It's easy to position the character on the first room because of the start character in room option.

I apologize if this question is too basic but there doesn't seem to be any other way than posting to find out the answer to this.
Thank you
Gaz ???

Jay

Have you used the interaction command: "Player - Go to a different room (at specific co-ordinates)"?

GT

#2
That's absolutely brilliant!
Thank you ever so much!
I knew that there was a simple solution to this problem.

While I'm here I might as well ask if anyone knows where you can download a free graphics programme to draw backgrounds and sprites?
I am currently using a programme called "paint" but the zoom in doesn't zoom in enough to let you do detailed pictures.

Oh & one more question, when I try to export a character to another file and name it .bmp the graphics programme I am using doesn't recognize the format, any suggestions?
Thanks once again

monkey0506

I'm sure that in the correct forum there is a thread called "The Big List of Paint Programs" or something to that effect.

Scummbuddy

instead of starting a new thread to say thank you, please continue it in the thread, as i had to merge both threads together.

please use the forum search on free paint programs, as with our beginners Frequently asked questions, plus forum rules exclusively states not to ask for paint programs in this forum, and doing so will get your thread a lock.

we're glad you were able have your problem solved, but please use the manual/help file's tutorial and follow it through at least once.

enjoy the program!
- Oh great, I'm stuck in colonial times, tentacles are taking over the world, and now the toilets backing up.
- No, I mean it's really STUCK. Like adventure-game stuck.
-Hoagie from DOTT

Khris

Quote from: GT on Wed 22/06/2005 19:52:12
Oh & one more question, when I try to export a character to another file and name it .bmp the graphics programme I am using doesn't recognize the format, any suggestions?

Hehe, Teh Converting...
You can't just change the file's ending; the characters exported by AGS and the bmp-Pictures of Paint are two totally different types of files.
Go to the sprite-Manager and right click one of the sprites, in the menu select "export sprite to file", then save it as Windows Bitmap. This way, it is automatically called ??.bmp and can be opened & edited with Paint. Save the altered sprite and import it back into the sprite manager for further usage then.
You can also im-/export to the clipboard from Paint & AGS, it's quicker this way.

You only need to export a character if you want to use him in another game.

SMF spam blocked by CleanTalk