stuck on step 4 (the new guy) pacdk beginner tutorial 2

For problems with creating games or for reporting bugs of the Tool.
redwind
PaC-DK Newby
Posts: 2
Joined: 19 Feb 2011, 22:07

stuck on step 4 (the new guy) pacdk beginner tutorial 2

Post: #77909 redwind
19 Feb 2011, 23:26

Hi there all. First off just want to say what a fantastic program pac-DK is! Ive recently started following the "pacdk beginner tutorial 2". I started out fine and everything was running smoothly until I hit upon step 4 (the new guy), creating the character "Herbert". As the tutorial stated I placed Herbert in the second room infront of the automat, opened the "secondroom" script and inserted the loop2 command for Herbert to walk around a bit, as instructed I put my own position co-ordinates. Anyway,I ran the game and nothing happened!. Herbert didnt move!. So, I suspect its something Im doing wrong in the script, since Im new to scripting.
this is How the "secondroom" script looks like as I perceived it throught the tutorial:

on(enter)
playmusic(kalimba)
on(exit)
stopmusic()

on (loop2)
{
walkto (herbert ; 36 ; 15)
wait (3)
speech (herbert ; My Life sucks!!; dontwait)
walkto (herbert ; 43 ; 15)
wait (3)
speech (herbert ; I am such a poor guy. ; dontwait)
walkto (herbert ; 37 ; 14)
wait (3)
speech (herbert ; Why don't I shoot myself anyway?; dontwait)
walkto (herbert ; 42 ; 14)
wait (3)
speech (herbert ; Everyone hates me! ; dontwait)
}

So, can anyone spot maybe a mistake or is that right. Also I thought it was the character frames that was the mistake so I made a duplicate of horst and tried the "loop 2" script, but it didnt work. Ive really hit a brick wall here. I dont get it. I'd appreciate it if someone could help make clear what the script should be. thanks everyone.

User avatar
Zimond
Der Engine Papa
Posts: 3318
Joined: 06 Apr 2003, 19:34
Location: Krefeld
Contact:

Re: stuck on step 4 (the new guy) pacdk beginner tutorial 2

Post: #77910 Zimond
19 Feb 2011, 23:28

is herbert "moveable"? maybe you have unchecked this option by mistake.
Image

redwind
PaC-DK Newby
Posts: 2
Joined: 19 Feb 2011, 22:07

Re: stuck on step 4 (the new guy) pacdk beginner tutorial 2

Post: #77912 redwind
19 Feb 2011, 23:38

thanks zimond for respnding quickly.
I take it you mean the bottom fof the room window it has two checkboxes saying "locked" and "unmoveable". Both are set to 'unchecked'. So as far as you can see, did I do the script right?, thanks again

User avatar
japanhonk
PaC-DK God
Posts: 1644
Joined: 05 Feb 2009, 20:36
Location: NRW
Contact:

Re: stuck on step 4 (the new guy) pacdk beginner tutorial 2

Post: #77913 japanhonk
20 Feb 2011, 10:12

I suspect that the first walkmappoint is not set to true or the coordinates are
wrong. ( I guess, that you inserted Herbert as Character not as object ! )

Try changing the first coordinates and tell Herbert the direction he has to look
at the arrived point ( you did not write them in your walkto´s )

Walkto (herbert;36;15; 1 ) ----> the last "1" makes herbert looking to the player, 2 : looking to the background, 3 : look right, 4: look left
( You have to set graphics to the character , otherwise he would disappear brcause of missing graphics...but even then you would recognize that the
walkto was executed)
Es gibt 10 Arten von Usern :
die, die Binärcode verstehen und die, die es nicht tun....
----------------------------------------------------------
STAR TREK FYNE :
http://www.fynegames.homepage.t-online.de


Return to “Problems and Bugs”

Who is online

Users browsing this forum: No registered users and 2 guests