changing to another character- solved

Started by mousemat, Mon 23/08/2004 12:17:58

Previous topic - Next topic

mousemat

i am working on a game called sunrider .
i have a problem .what i want to happen is when you walk outside you automaticly turn into a speed boat.i have all the right characters and i have read the manual but i still dont know how to do it.
Oh yer moon walkin'
www.freewebs.com/bkreview/

Mr Jake

well, after searching 'change player character' and clicking on the very first thing in the list and then skiming over the list of commands in the help entry I found
SetPlayerCharacter (CHARID)

took what, 30 seconds :/

btw: I did already know this command I just wanted to see how much he actual searched the manual.

mousemat

#2
youve known ags editor longer than me
anyway thanks

edit:that didnt work
Oh yer moon walkin'
www.freewebs.com/bkreview/

Mr Jake

It should do, maybe you should paste your code so we can help you?

mousemat

 // script for hotspot1: Interact hotspot
SetPlayerCharacter(UTURN);Ã, 

uturn is the name of the speedboat
this is ment to make the character into a speedboat.

i have put:

interact with hotspot
player-go to room 2
run script

is that right
Oh yer moon walkin'
www.freewebs.com/bkreview/

Mr Jake

try putting the run script first

Ashen

I don't think you actually need the 'Player - go to room 2' command, since SetPlayerCharacter automticaly moves you to the room the new character (UTURN) is in. You just have to remember to use the 'Character - Move NPC to different room' command to position the other character to a new room, when you're done in the boat.

Alternatively, you could use 'Character - Set character view' when you enter room 2, to make the current character look like a speed boat. This might be a little easier than SetPlayerCharacter, as you won't have to move and re-position an NPC when you leave room 2.
I know what you're thinking ... Don't think that.

Mr Jake

ah yes, that is a good point, is UTURN IN the room you are moving too???

also, yes, you dont need the goto room

mousemat

#8
thanks i will get working soon.

it still dosent work!
Oh yer moon walkin'
www.freewebs.com/bkreview/

Mr Jake

cant you give us more info that that? what was the error?

mousemat

theres nothing to explain i did exacly what ashen told me to do but nothing worked.
as soon as i leave to first room to get on the boat i start walking on water!
Oh yer moon walkin'
www.freewebs.com/bkreview/

Ashen

Well, I said two different things, which one did you do?
What interactions do you have for leaving room 1 (and what script, if you're using a runscript)?
I know what you're thinking ... Don't think that.

mousemat

when leaving room one i put go to room 2 then in room 2 i put stand on hotspot-character-set character view-uturn

i got a bit confused with hotspots posts that i think i have done it wrong somewhere.
Oh yer moon walkin'
www.freewebs.com/bkreview/

Ashen

Try:
Room 1 hotspot (or whatever)
  Go to room 2
(exactly as you have now)

Room 2
     Player enters screen (before fade in)
          Character - Change character view (EGO, UTURN)
(you mayhave to use the view number for this, rather than the name)

See if that works any better.
I know what you're thinking ... Don't think that.

dikla

If I undersatnd correctly when the player leaves the room he turn into UTURN?
If so, this is simple. what you have to do is when the player leaves the room you should specific just go to room 2. in room 2 you should put in SETTING - first time player enter the room - change character view (EGO, view no of the UTURN). I tried it and it should work.

mousemat

in room 2s hotspot i have put

do the following comand
character-set character view

where:
character:UTURN
view number:0
Oh yer moon walkin'
www.freewebs.com/bkreview/

Ashen

I meant what dikla said, but she might've put it better.

DON'T USE A HOTSPOT IN ROOM 2, use the Player enters screen (before fade in) interaction and make it:

do the following comand
character- Change character view


where character : Main player character (EGO),
view number: Motorboat walking (sailing? whatever) view (UTURN).
NOTE: don't use 'set character view'

This way, you're not actually changing the character, just how the character looks. You could use different characters, but that's a lot harder to manage without scripting everything.
I know what you're thinking ... Don't think that.

mousemat

were is the player enters screen before fade in option
Oh yer moon walkin'
www.freewebs.com/bkreview/

Mr Jake

at the end of the list of Interaction Options for the room

mousemat

in what section of the room editor is that
Oh yer moon walkin'
www.freewebs.com/bkreview/

SMF spam blocked by CleanTalk