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

Messages - Malcoladdin

#1
Thanks very much for your help Timid Dolphin! That really helped me to understand the scripting system of AGS a bit more clearly. It is really like learning a whole new language haha. Hopefully I can figure most of this out. With a bit of perseverance, I am sure I will get there
#2
I am very new to the world of scripting, and am having a bit of a hard time understanding the language. I have gone through the first few tutorials for Sammy's Quest, which have been very helpful in helping me with the first few steps, ie creating the 'world' of 12 walkable rooms, making the first few interactive objects and so on. I have also read the tutorials on scripting, but if I am being perfectly honest, a bit of it went over my head. I am sure that with practice I will get it, but it can be frustrating trying to work things out when you are a beginner.

Something I need advice on:

When the player, Clancy, enters the 'cave entrance' room where Samuel is, I have got Samuel to walk to him, say his speech, then walk back and forth... but this only works the first time the player enters the room. Ideally, I would like Samuel to walk back and forth between two spots when he enters the room. Samuel spawns at 219, 200. I have tried functions such as

Code: ags
function room_RepExec() {
  if (cSamuel.x==219)cSamuel.AddWaypoint(286, 183);


(before the below block of script)
but this seems to just freeze the character in place

Here is what I have at the moment.

Code: ags
function room_FirstLoad()
{
cSamuel.Walk(70, 197, eBlock, eWalkableAreas);
cSamuel.Say ("Stay out of the mine! It is dangerous!");
}

function room_RepExec() {
  if (cSamuel.x==70)cSamuel.AddWaypoint(286, 183);
  else if (cSamuel.x==286)cSamuel.AddWaypoint(161, 187);
  else if (cSamuel.x==161)cSamuel.AddWaypoint(286, 193);
}


If anyone could give me some guidance, that would be much appreciated. Thanks!
#3
Hello everyone! My name is Liam, and I am very new to the world of game making.

I have started working on a game - Clancy Clam. It is pretty simple, but I figure it is best not to be too ambitious with my first game. So far, I have mainly been basing my script off of the Sammy's Quest tutorials on youtube, which have been very helpful.

The Story:
Clancy has just moved to town. He keeps hearing rumours about a mysterious cave. The townsfolk say that it is haunted, and that is sure what Samuel wants you to believe. You won't find out for real until you somehow get him away from that cave mouth.... but how?







Development Progress:
Story: 85%
Graphics: 60%
Script: 25%
Sound: 0%



SMF spam blocked by CleanTalk