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 - Kikutaâ„¢

#21
General Discussion / Re: what is a good gui?
Mon 03/01/2005 23:15:02
For me , the best Gui is that kind of Gui that you show to a person who never played any kind of point and click games, and see her working with it.

My favorite kind of Gui is from the game The Longest Journey. Another gui i like was from Monkey Island 3 .
#23
Thanks :D:D It's worked!
#24
maybe you want something like this :

AddInventoryItem(number);
Display("I got a key");
#25
I've made a sound for footstep, and i've put in the character's view to play the sound in certain frames.

I named the file name to "SOUND1.WAV", and when i play the game and open the debug console, it appears "FAIL loading sound 1"

Why is that ? I've rebuild the VOX files, sou i dont know what the problem is.
#26
Well, i was just thinking. Is there a way to script like , an inventory screen, that is 30% transparent and make the inventory item not transparent ?

And btw, when u click the left button over a  inventory window, is it LEFTIN or just LEFT? Because i'm having trobles with it and it doesnt work in either :P Maybe my mistake.
#27
LOL! Thanks, it worked! That was just the thing i needed :D
Thanks alot, u guys are very helpful.
#28
i made a Gui like this. One left click off a hotspot , character and object and it makes the character walks. But if the mouse is over a hotspot, character and object, it opens a gui with use,look, and talk (just like that game, the longuest journey). I want to open that same gui if i click over an iventory item.

I will try that thanks :)

Edit : It worked thanks :D
#29
I have another problem :(

Well, The last problem i manage to solve, but i'm 2h around this new problem and i cant solve it :(

I want to open a new GUI and inv variable to 1 when the inventory screen (a gui that i made) is open. I've put the Z-order right, but it's still the same, it doesnt appear, and nether the inv is 1.

I've made this in on_mouse_click. I've even tried in unhandled_event, but nothing.

Do you know how to do it ?
#30
Well, i hate to post thing here, i prefere discorvery myself, but this it's my last resort. As i said in my last post, i made a new inventory GUI. I add a new item to my inventory list, but when i click in it, it doesnt happen anything! It is suppost to "pick up" the item from the list!

I've tried to comment everything on_mouse_click except the part you press the left button ad still doesnt happen. I've seen the code of three diferent games and i dont see any specific funtion to get the item! It is only suppost the left click, and pick the item, right ?

//Edit:

I've discovered. When you pass the mouse into a hotspot, character,inventory item or object, the mouse pointer becames red, so, the mouse didnt pick up the mouse.
Sorry :P
#31
I've already did that in function show_inventory_window()

But it's very wierd because if i press TAB it doesnt appear that error, but if i press the right button, the only thing i get is that errorÃ,  :-\

Shall i substitute the InventoryScreen() for show_inventory_window() ?

Ah, ok! :D I've get it now! thanks  ^^ I'm always complicating.
#32
I've created a new game using blank template, so i didnt had any gui already made.
I've created an inventory gui, all from scratch. I code it and everything. But it when i press the right buttonÃ,  (it does InventoryScreen() ) it always gives an error that i cant understand.

The error is this:

"ERROR: InventoryScreen: one or more of the inventory screen graphicsÃ,  have been deleted"

No matter how i do it always gives this error. I even tried to rip the default inventory gui just to check if it was my error. It gives the same old error. I've also tried to take the background image and the button imagens and nothing.

Did anyone seen that this error is ?
#33
Thanks. It works now! :D
I've appreciated your help ^^
#34
ok, sorry to bother you, but i've already found. I didnt want to post but this was my last attempt but i found out :P

the game.room_height was 500, but i had to use the standart height - 250. So, i just did
if (mouse.y >= 189) (code) and it gave...

Sorry, i just know why it is! :-[
#35
Ok, this is the part i hate the most when i code.
I hope to find solutions although i dont expect any.

Ok, this is it. I've made a background image with 500 height. And i want to open a gui in the position of mouse.x, mouse.y . But if the mouse is on the edge of the screen, the gui opens out of the screen, so i want to change that.
I start to put in repeatedly_execute  this

if (mouse.y >= (game.room_height-51)){
             SetGUIPosition(2,mouse.x,game.room_height-51);}

But.... since room_height is bigger than 300 (as normal in a 640*480 game) the game doesnt recognize the mouse.y position!

I've made a test. This one :  if (mouse.y > 200) Display("miau"); And it worked, but if i change it to 250, the display doesnt appear......

Oh, and i have to say, i've made a gui that is always (mouse.x, mouse.y) position, and if i put an hotspot, like in, x=200 and y=400, the label in the gui shows correctly the name of the hotspot, so the mouse.y workes there.

I just want an answer. Is it a coding mistake (i hope so!) or just a bug ?
Pardon me for the bad english.
#36
Thanks, i appreciate :D
#37
thanks, your too kind :D

I cant seem to do the double click script. I've already tried but it doesnt seem to work.
It works, but very badly! Can u show me how u did it, please ?
#38
Thanks!
I cant beleive i miss the "IsButtonDown because i've searched the intere help looking for that.

And thanks again for the duble click question.
I've did something like that, but it was not working as i liked. I made a counter and the secound time the player clicked the left button, it would activate the script.. anyway, thanks again ;)
#39
Hi

I am having troubles scripting how to make the double click work and i cant script a "hold click" function.

I have looked everwhere for a function that could make my life easy but i cant find it :P
So, i was hoping that you guys could help me to script that .

thanks :)
SMF spam blocked by CleanTalk