My player Character is gone

Started by , Fri 01/04/2005 12:11:16

Previous topic - Next topic

En garde

Right. Assuming that I am not the smartest person in the world: I start with two screens with the player character hidden and GUIOff on GUI 1 and GUI 0. The third room has GUIOn in both GUI's. All great. Except my character is not ther, even when the "Hide player character" box is unmarked.

Here's the room script for said third room.

// room script file


#sectionstart room_a  // DO NOT EDIT OR REMOVE THIS LINE
function room_a() {
  // script for room: Player enters screen (after fadein)
GUIOn(0); 
}
#sectionend room_a  // DO NOT EDIT OR REMOVE THIS LINE

#sectionstart room_b  // DO NOT EDIT OR REMOVE THIS LINE
function room_b() {
  // script for room: Player enters screen (after fadein)
GUIOn(1); 
}
#sectionend room_b  // DO NOT EDIT OR REMOVE THIS LINE


And... Can you explain this to me like I was a not very bright four year old? Thanks.

Ishmael

Nothing wrong with the script. Except why do you have two "Player enters screen (after fadein)" interaction scripts? You could do fine with just one.

Could you tell how you moved the character to that room? If they are at some off-screen co-ordinates or something...
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.

En Garde

Quote from: Ishmael on Fri 01/04/2005 12:13:47
Nothing wrong with the script. Except why do you have two "Player enters screen (after fadein)" interaction scripts? You could do fine with just one.

Great! How?

Could you tell how you moved the character to that room? If they are at some off-screen co-ordinates or something...

I don't even know what that means. The character should be in the three rooms at x:210 and y: 145, only in the first two ones the "hide player character" box is marked.

Ishmael

#3
Okay, for the first one: move the line GUIOn(1); so your script looks like this:
// room script file

#sectionstart room_aÃ,  // DO NOT EDIT OR REMOVE THIS LINE
function room_a() {
Ã,  // script for room: Player enters screen (after fadein)
  GUIOn(0);Ã,  
  GUIOn(1);Ã,  
}
#sectionend room_aÃ,  // DO NOT EDIT OR REMOVE THIS LINE


#sectionstart room_bÃ,  // DO NOT EDIT OR REMOVE THIS LINE
function room_b() {
Ã,  // script for room: Player enters screen (after fadein)
}
#sectionend room_bÃ,  // DO NOT EDIT OR REMOVE THIS LINE

And then go to the interaction editor and delete the latter Run Script under the interaction. Right-click on it, and select the remove option from the context menu.

For the second one, I meant how do you move the character from room to another? With the Go To Room command in the interaction editor? With NewRoom in a Run Script?
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.

En Garde

Thanks!

I have a hotspot on my second screen (the "start" button) The "interaction" for that is "Player: go to a different room (at specific coordinates) (3, 0, 0)"

Oh, wait! It's the "3, 0, 0" part, isn't it? It should be "3, 100, 100" or something right? Let me try this...

Yeah, it was. Me dumb. Sorry. Thanks anyway.


Ishmael

No problem :) Trial and error, one of the best ways to learn AGS in my opinion.
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.

SMF spam blocked by CleanTalk