Menu

Show posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.

Show posts Menu

Topics - Danruto

#1
Hi there,

I'm very new to AGS and am using it to learn base scripting. I've been trying to use the 'SetPlayerCharacter' command to allow a switch between two onscreen chars I have got after choosing to interact with a hotspot. The room code is as follows:

function hPrestswitch_Interact()
{
SetPlayerCharacter() (cChan.SetAsPlayer()
}

function hChanswitch_Interact()
{
SetPlayerCharacter() (cPrest.SetAsPlayer()
}

However wen trying to run the game and error occurs stating: 'Undefined token 'SetPlayerCharacter'

I understand this is more than likely a simple issue pertaining to my complete lack of experience with coding, if someone could point me in the right direction I would really appreciate it.

I have searched the forums and read the BFAQ but get the feeling I'm missing something very straight forward.

Thank you for your time.
SMF spam blocked by CleanTalk