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

Topics - emma_north1

#1
OK basically what I need to know is where the game stores the save/load screen info and data, as well as the quit game image. I'm using the blank game (not the default one which I know comes with a few sprites and GUI), and yet I still have all the default save pages and things. This is fine, but I cannot find anywhere where I can edit this. I'm pretty sure it's not in the global script that comes with the blank game, so where is it? Where can I view and maybe edit this information? There are also other global messages that appear that I cannot find any source or script for, such as if I view inventory with no inventory items it sometimes shows a message that says something like "You have no inventory items". Where are these global messages and things?

If I'm not being clear please do let me know and I'll try to re-word.
#2
I'm using a blank script (new game) and have uploaded my Inventory Screen and my control bar (the one at the top with all the buttons across, including inventory). I've successfully scripted the bar to only appear when the mouse gets to the top of the screen, and have had no problem programming the curser buttons to work. However I can't seem to get my Inventory button script right. Obviously when the player clicks that button I want them to be taken to my Inventory screen (gInventory), but nothing I try seems to work.

I've loaded up the demo game to see how that did it, but the script it's using doesn't work at all for me even though it's still in the new AGS. This is what they used:


function btnIconInv_Click(GUIControl *control, MouseButton button)
{
  show_inventory_window();
}


I know the top bit needs to be:


function Inventory_OnClick(GUIControl *control, MouseButton button)


But cannot get the next bit right. Please help!
#3
I have a huge problem and I'm desperately hoping someone has the time to help me out!

I've been writing a game using the blank new game template (not the one with all the pre-imported graphics) and have noticed when I'm playing that the top bar that used to come up on the old templates which showed inventory buttons, etc. isn't there. I know that this is because that interface doesn't actually come as part of the game as I thought it did and so I have to write it myself!

This would be fine in as much as I can make the graphics no problem, but how do I write the global script that tells the game things such as:
- When the GUI should appear (ie: when the curser reaches the top of the page)
- How to turn the images of buttons into functional ones
- How to make the GUI completely functional like the one in the default game template.

If anyone can point me in the right direction for this or even better give me some instructions on scripting it would be greatly appreciated as currently all the work I've put into my game is for nothing as I have no GUI!
#4
I read another thread (below) about this but what they're saying doesn't work for me.

http://www.adventuregamestudio.co.uk/yabb/index.php?topic=34787.0


When I use the Display function, which I'm sure I'm doing right, when I run the game and click on the item I get "Invalid GUI specified as text window". However the custom GUI window is set to 0, so where am I going wrong? I've done exactly what the tutorial shows but mine doesn't work.


Here's the format that I'm using:

Display("There is a door here.");
#5
I had found a couple of posts which tackled this issue and seemed to solve it, however they were old and used the old AGS. The solutions they provided do not work in the same way now that the scripting has changed so I need new help!

I have a room that is accessible from any other room in the game (via hotspots) and I want to make a hotspot in that one room that will return the player to the previous room. However, it seems the PreviousRoom command doesn't work in this way, or at least I don't know how to script it as whenever I choose the any click on hotspot thing it won't let me use the PreviousRoom option properly any way I try.

Is there anything I can do? If so please help!

Best regards
Emma North
#6
OK, before I go any further I want to apologise if there is an answer to this in the forum but I've been looking through the tutorials and forums for over an hour and haven't found what I wanted yet!

What I'm trying to achieve is a first-person point-and-click style game like the old Sierra classics such as Shivers and Phantasmagoria, or like the orginal Myst. However I'm having trouble in the early stages. Obviously for this I wouldn't need to bother with character design or anything, however because I have no character to "walk" anywhere, I'm not sure how to get from room to room or view to view.

I'm using Edges and the room_leaveLeft/Right scripts to try and get the player into the right rooms but when I run and click nothing happens because obviously no character is walking anywhere. What should I do? Has anyone got any tips or instructions for someone like me who is specifically making a first-person point-and-click such as this?

Your help would be greatly appreciated!  :)
SMF spam blocked by CleanTalk