Game Start Automatic Digalog

Started by Lukey J, Sun 12/04/2020 18:43:03

Previous topic - Next topic

Lukey J

Afternoon Guys,

so bsaically what im looking for is..

as soon as the game loads and after the first fade in, in the first room

the play talks - speaking the plot of the game

giving the player a task in this case to make a cup of tea

any help would be grand


Slasher

Could start dialog in 'First time enters room' function in room 1.

Lukey J

Could you give me an example of what you mean

cheers

Slasher

#3
Code: ags

function room_FirstLoad()
{
  // add what you want character to do/say
}

Lukey J

function room_FirstLoad()
{
      player.Say("I'd rather open it");
}

Didnt seem do do anything :(

Slasher

it won't if you just added the function yourself.  You need to click on the room_FirstLoad function in the room property panel.. this will show the function in script.. then add your bits..

Snarky

The function needs to be linked to the room event in the editor. You should go through the "Starting off" tutorial in the manual, in particular the sections on Hotspots and events, and Animations and cutscenes.

Lukey J


SMF spam blocked by CleanTalk