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

#61
Critics' Lounge / Re: QUESTIoN BACKGROUND
Tue 05/02/2008 16:13:19
step two: shading
#62
uhm you can use a character by using views

example i click on an object, then the character is created on the object and the view loop (that is your "video") starts, then you change to a new room with the zoomed item

this way i think you can obtain your zooming effect
#63
uhm what about an animating background?
#64
or you can use variable

if player use sugar with cup then set sugar variable to 1
if player use milk with cup then set milk variable to 1

if both sugar and milk variable are set to 1... there you go ;)
#65
I think that problem is that when we are in the inventory items piece of code the cicle cursor don't work, and i can't understand why...
#66
this is the code:

Code: ags

 LocationType lt=GetLocationType(mouse.x, mouse.y); // changed 'int' to 'LocationType' since that's what actually what GetLocationType returns
                                                     // not that it makes a difference
  if (lt==eLocationNothing) {
    mouse.DisableMode(eModeLookat);
    mouse.DisableMode(eModeInteract);
    mouse.DisableMode(eModeTalkto);
    if (InventoryItem.GetAtScreenXY(mouse.x, mouse.y) != null) {
      mouse.EnableMode(eModeInteract);
      mouse.EnableMode(eModeLookat);      //<----THIS SEEMS NOT TO WORK
      mouse.DisableMode(eModeWalkto);
    }
    else mouse.EnableMode(eModeWalkto);
  }
  else {
    mouse.EnableMode(eModeLookat);
    mouse.EnableMode(eModeInteract);
    if (lt==eLocationCharacter) mouse.EnableMode(eModeTalkto);
    else mouse.DisableMode(eModeTalkto);
  }


the line that don't works is where there is "<----THIS SEEMS NOT TO WORK"
#67
Quote from: monkey_05_06 on Thu 24/01/2008 18:33:33
Code: ags
  LocationType lt=GetLocationType(mouse.x, mouse.y); // changed 'int' to 'LocationType' since that's what actually what GetLocationType returns
                                                     // not that it makes a difference
  if (lt==eLocationNothing) {
    mouse.DisableMode(eModeLookat);
    mouse.DisableMode(eModeInteract);
    mouse.DisableMode(eModeTalkto);
    if (InventoryItem.GetAtScreenXY(mouse.x, mouse.y) != null) {
      mouse.EnableMode(eModeInteract);
      mouse.DisableMode(eModeWalkto);
    }
    else mouse.EnableMode(eModeWalkto);
  }
  else {
    mouse.EnableMode(eModeLookat);
    mouse.EnableMode(eModeInteract);
    if (lt==eLocationCharacter) mouse.EnableMode(eModeTalkto);
    else mouse.DisableMode(eModeTalkto);
  }


Use InventoryItem.GetAtScreenXY. There's really no difference between using Hotspot.GetAtScreenXY and GetLocationType (other than return value of course), but GetLocationType can't be used for InventoryItems or GUIs while their respective GetAtScreenXY functions can.

BTW Crazy, that wouldn't actually help the problem as he still wants the cursor to cycle in certain cases. Further, there's no reason to insult anyone simply because they ask for help.

yepppp it works, but in the inventory cursor change to interact, no way to change it to lookat (adding mouse.EnableMode(eModeLookat); seems not working...)
#68
i using this script (thanks to KhrisMUC)

Code: ags
int lt=GetLocationType(mouse.x, mouse.y);
  if (lt==eLocationNothing) {
    mouse.DisableMode(eModeLookat);
    mouse.DisableMode(eModeInteract);
    mouse.DisableMode(eModeTalkto);
  }
  else {
    mouse.EnableMode(eModeLookat);
    mouse.EnableMode(eModeInteract);
    if (lt==eLocationCharacter) mouse.EnableMode(eModeTalkto);
    else mouse.DisableMode(eModeTalkto);
  }


when mouse isn't over an hotspot, object or char, it simple disable all cursors expect walkto

but when it pass over an object on the inventory i can't change cursor so i can't interact with it.

i tried this:
Code: ags
 if (mouse.y > 200) {
mouse.EnableMode(eModeLookat);
mouse.EnableMode(eModeInteract);
}


cause inventory starts at y position = 200 pixel
but it works only if mouse is at y=200 not y>200

any suggest
#69
Critics' Lounge / Re: Background lighting...
Thu 24/01/2008 12:23:25

are you sure it's the correct image? it seems a mask


Edit by ProgZ:  Please don't quote posts directly above yours.
#70
just a suggestion: a message that inform the user that he's using special chars in messages... by now the error message appears only if the message is displayed during the game and not during the editing

i think this could be usefull
#71
updated first post ;)
#72
i'm going crazy with grass...



i'm trying to obtain the grass effect as in DOTT:


but i think i'm far from it :(

someone could help me?
#73
Critics' Lounge / Re: Handrawn Style
Mon 21/01/2008 09:16:19
Quote from: Ghost on Sun 20/01/2008 03:12:39
Oh- and always add a lava lamp  ;)

;D
#74
Quote from: Crazy on Sat 19/01/2008 22:41:46
Remove the code that cycles the mouse buttons (if you can't find it in the global script you're a tool).

thanks, but don't help
#75
Quote from: monkey_05_06 on Sat 19/01/2008 21:35:53
You could put in the global script's repeatedly_execute function:

Code: ags
Hotspot* hat = Hotspot.GetAtScreenXY(mouse.x, mouse.y);
if ((hat != null) && (hat != hotspot[0]) && (mouse.Mode != eModeLookat)) {
  mouse.SaveCursorUntilItLeaves();
  mouse.Mode = eModeLookat;
  }


That way any time the mouse is over a hotspot other than hotspot 0 (the "no hotspot" hotspot ;)), it will run the code to set the mouse mode.

thank for your quick and useful answer

it works, but if i click second mouse button it returns to LookAt and i cant interact with the object :(

Quote from: KhrisMUC on Sat 19/01/2008 21:40:43
Alternatively, one can use "  if GetLocationType(mouse.x, mouse.y) == eLocationHotspot)".

thank you too :)

but same problem with right mouse button :(
#76
I need to change mouse cursor to LookAt when it pass over a hotspot or object

I do this script for every hotspot:
Code: ags
if (Mouse.Mode != 4) {
mouse.SaveCursorUntilItLeaves();
mouse.Mode = eModeLookat;
}


but i think it's possibile to do this in global script only one time and not for every hotspot

i found this
thread
but i think there is a easy way (hoping so :P)
#77
here is how it looks in game, now an off-topic... by now I have no good ideas for a GUI system

#78
Quote from: Uhfgood on Sat 19/01/2008 05:49:12
Curious, but does that plant happened to be named "Chuck" ? ;-)

;D


Quote from: KhrisMUC on Fri 18/01/2008 16:01:59
Yep, really nice!
If you want anti-aliasing like in DOTT or Sam&Max, draw the room at twice the size, then scale it down. It looks like you've used only the line and fill tool, so doubling the size won't double the work ;)

triyng resized I got a not so good aa effect... could you please try on my bg?
#79
Quote from: MesaBlue on Fri 18/01/2008 21:27:30
Heh.  Hey it's looking really good now that something is in the room.  Must admit I like how it looks, a lot, nice job.  Adding anything else? maybe a rug?  The plant I see, what's the item on the table supposed to be?

a rug.. yes is a good idea

the item is a box... i'm thinking redoing it in 640x480...
#80
Quote from: cat on Fri 18/01/2008 12:36:30
The only thing I would suggest is not using outlines on the black foreground.

done ;)

Quote from: MesaBlue on Fri 18/01/2008 14:42:15
That's a great room! Question: is the exit sign lit? There's this brighter highlight around it, thought maybe that meant it was a lit sign.

yes, is a lit sign, letters are smoothed by light

Quote from: KhrisMUC on Fri 18/01/2008 16:01:59
Yep, really nice!
If you want anti-aliasing like in DOTT or Sam&Max, draw the room at twice the size, then scale it down. It looks like you've used only the line and fill tool, so doubling the size won't double the work ;)

i'm trying to don't use anti-alising but line and fill, anyway in some thing (like shadows) i used a little anti-alising.

Here is want i think could be the final version ;)



SMF spam blocked by CleanTalk