So i'm trying to get my character from room 1 to room 2 following the manual and tutorial videos.
Everything works untill i leave room 1 and the game crashes with this error message:
"error: prepare_script: error -18(no such function in script)
trying to run ´room load´ (room 2)"
What does this mean and how do i fix it?
My code leaving the room looks like this:
function room_LeaveTop()
{
cEgo.ChangeRoom(2, 502, 448);
}
Thanks!
Did you use the 'Enters room before fade in' function in Room 2 events panel or did you just type it in?
That sounds likes you have clicked an event, that you called room load, and then you either deleted it from script or changed it's name to something else. load[/b].
Quote from: Cassiebsg on Sat 10/07/2021 00:38:06
That sounds likes you have clicked an event, that you called room load, and then you either deleted it from script or changed it's name to something else. load[/b].
Yes this was indeed the problem.
Thanks!