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 - Spiderhund

#1
Thanks guys :)
Now I should be able to add a (maybe kinda cool) feature I've been thinking of :D
#2
Hey.
I've ran into another problem with my game.
I've been looking through the manual and on the forums but found nothing.

I want to be able to change room without moving the player to that room so that when I return from that room the player will be in the exact same position as when I left.
It's because I want a map that the player can bring up and then close again when they're done using it. I don't what to use a GUI for this because I want some objects on it that the player should be able to move around on the map.

So the way I would do this is to when the player clicks on the "Open Map" button it will save his current Room ID, Position X and Position Y to 3 different Global Variables then using the "ChangeRoom" command to go to the map room. Then when the player clicks on the "Close Map" button (In the map room) It will use the 3 Global Variables (Room ID, Pos X, Pos Y) to restore where the player was when he opened the map.


Is this the best way to do this or is there another maybe easier way of doing it?
Thanks in advance.
#3
Quote from: Gregjazz on Mon 30/03/2009 23:35:39
What, really? Which TV show? Any video clips available?

It's called Troldespejlet.
They said it was one of the best games made with AGS and that it looks professional.

I don't know if you can view this website.
http://www.dr.dk/DR1/Troldspejlet/Nettjek/gratisspil/gratisspil/20090327110541.htm
But if you can just play the video clip at the top of the page :)
#4
This game is so awesome :D
It was featured in a danish TV-Show today :)
#5
Awesome game and the "simple" graphic gives a special feel to it :D

Quote from: Kyougi on Mon 23/03/2009 20:39:35
I would have loved to make it so you could dial the numbers yourself but I really I had no idea where to start to allow the player to do that.
I should be able to help you if you want. I could make a GUI and a small tutorial on how to use it for you.
I don't know if there is already some guis on the forum that you could use but if there isn't then I would gladly help you :)
#6
Quote from: monkey_05_06 on Mon 23/03/2009 16:58:04
The script o-names for hotspots and objects are only available within that specific room script. You could instead use: object[THEOBJECTID].Visible = false or CallRoomScript.

BTW, welcome to the forums. And your Engrish isn't bad at all. ;)

Thanks that worked  ;D
#7
Hey I'm new here so I apologize if I'm posting in the wrong place.

So here is my problem.
I have a keypad in one of my rooms. It's just a hotspot. When I interact with it a GUI I made will popup asking for a password(In a textbox). That is all working great but now when I click on the "ok" button(On my GUI) I want it to check if the password is correct. If it is correct I want it to change the visibility of a door object in my room and then close the GUI. The door object is named "odoor".

Here is my code:

function Button1_OnClick(GUIControl *control, MouseButton button)
{
  if (textbox_pass.Text == "1527") {
    odoor.Visible = false;
    gKeypad.Visible = false;
    cJohn.Say("Well that worked.");
  }
  else
  {
    gKeypad.Visible = false;
    cJohn.Say("It doesn't seem to be working.");
  }
}


It gives me this error though.

GlobalScript.asc(516): Error (line 516): Undefined token 'odoor'


As far as I know it's because AGS doesn't know what odoor is even though the player is in the same room as odoor.
Is there a way to tell AGS to look for odoor in room3? Or is there another way around this problem.

Oh yeah btw sorry my bad english I hope you get what I mean.
SMF spam blocked by CleanTalk