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 - VK Dan

#1
You need to make sure you're calling it at the right time. From your original post, it looks like you want it to run as soon as you enter a room. For that to happen you need to put the code inside the room_Enter() function.

To make it work though, you'll need to make room_Enter() occur when your character enters the room. That info should be in the Tutorial (I can't give you anything more exact. I don't have AGS on this computer).  Once that is done, the only thing left to do is make sure that the code is doing what you want it to do. :)
#2
The problem is you're not using it in a function. If you want your animation to run, you need to place the code inside a function.

For example, this should compile:
Code: ags

function DoSomething()
{
   cAng.LockView(4);
   player.Animate(0, 3, eOnce, eBlock);
   cAng.UnlockView();
}


Alternatively, if you want it to happen when you click on an object in a room, you have to put the code in the appropriate function. Take a look at the Introduction part of the help file for how to do that. (I'd link you, but the online tutorial isn't available ATM.)
#3
The dress isn't quite right. There's too much of the skirt in the back, and not enough in the front. She almost looks pregnant as it is.
#4
Itty bitty scaling bug with the new Global Variables editor. When I resize the editor horizontally, the Global Variables pane doesn't resize with it. Here's a screenshot showing what I mean. Notice the blank space to the right of the editing pane.
#5
I believe he has the Windows version, but it is skinned to look like a Mac.

However I can't see what the error is since the thumbnail doesn't link to the larger image (or if it does, my computer won't load it).
#6
Regarding breakpoints, take a look at the Debugging page in the manual. They'll let you step through your code one line at a time. Very helpful for debugging.
#7
In the walkable areas you can set the amount that the character will shrink as he moves along the walkable area. Look in the Scaling section of the Properties window.

#8
Try using this (existing ;)) function instead
Code: ags
Object.GetAtScreenXY(mouse.x, mouse.y)
#9
Twin Moon's link seems to be broken. Here's the correct link
#11
Critics' Lounge / Re: Character Sprite
Fri 29/02/2008 15:51:17
Oh... :P

What if you remove the dark parts between his legs/feet? Most main character sprites I've seen don't include shadows on the ground. Here's a rough example of what i mean (I know it sucks, but I am really not an artist :))


It occurs to me now that I probably should've edited the small one instead of the upscaled one...oh well
#12
When you're editing a room's script after running the game (either with or without the debugger), the autocomplete doesn't find any of the room's objects until you open/switch to the room's tab.
#13
Critics' Lounge / Re: Character Sprite
Fri 29/02/2008 15:32:52
It looks to me like his feet are facing the wrong direction. The rest of the sprite is facing towards you, but the feet seem to be pointing to the right.
#14
Quote from: subspark on Thu 28/02/2008 20:15:42
I would like my gamers to stay IN the game and out of the gamesetup execultable as much as can be managed. Having said that, perhaps it's time for the controls in the gamesetup to be incorporated as default GUI's in the game editor itself that can be turned off at will and customized to fit the game's appearance.

I would love to have the settings incoporated directly into the game, but if I remember correctly the reason for having a separate application for the game's setup was to allow people to change things if the game engine was unable to run.

There are possible workarounds, but it seems like a good idea to at least keep the current gamesetup around. :)
#15
I can't test the code right now, but it looks like the error is in your while loop. You have each of them set as

Code: ags
while ((IsKeyPressed(375)>0) && (character[EGO].Moving)) Wait(1);


Where as you need to have the correct ASCII code for each loop (e.g, the up arrow should be)
Code: ags
 while ((IsKeyPressed(372)>0) && (character[EGO].Moving)) Wait(1);
#16
Character.StopMoving() is a function, so you need the parenthesis when you call it (even though there are no paramaters).

Code: ags

if (keycode==372) { // up arrow
    character[EGO].WalkStraight(player.x, player.y-200);    
		while ((IsKeyPressed(375)>0) && (character[EGO].Moving)) Wait(1);
    character[EGO].StopMoving();
}
if (keycode==375) { // left arrow
    character[EGO].WalkStraight(player.x, player.x-200, player.y);
    while ((IsKeyPressed(375)>0) && (character[EGO].Moving)) Wait(1);
    character[EGO].StopMoving();
}
if (keycode==377) { // right arrow
    character[EGO].WalkStraight(player.x, player.x+200, player.y);
    while ((IsKeyPressed(375)>0) && (character[EGO].Moving)) Wait(1);
    character[EGO].StopMoving();
}
if (keycode==380) { // down arrow
    character[EGO].WalkStraight(player.x, player.x, player.y+200);
    while ((IsKeyPressed(375)>0) && (character[EGO].Moving)) Wait(1);
    character[EGO].StopMoving();
}
#17
General Discussion / Re: PC Specs?
Tue 12/02/2008 16:58:50
Here's mine. :)
Quote
    Computer:
      Operating System                                  Microsoft Windows XP Home Edition
      OS Service Pack                                   Service Pack 2
      Internet Explorer                                 7.0.5730.13
      Computer Name                                     CHINOOK
      User Name                                         Dan
      Logon Domain                                      CHINOOK

    Motherboard:
      CPU Type                                          Mobile AMD Athlon 64, 1600 MHz (8 x 200)
      Motherboard Name                                  Quanta 3093
      Motherboard Chipset                               Unknown
      System Memory                                     448 MB
      BIOS Type                                         Phoenix (10/19/05)

    Display:
      Video Adapter                                     ATI RADEON XPRESS 200M  (64 MB)
      Video Adapter                                     ATI RADEON XPRESS 200M  (64 MB)
      Monitor                                           Plug and Play Monitor
      Monitor                                           Plug and Play Monitor [NoDB]  (QGU065003076)

    Multimedia:
      Audio Adapter                                     Conexant AC-Link Audio [NoDB]

    Storage:
      Disk Drive                                        FUJITSU MHV2080AT PL
      Optical Drive                                     CD-ROM Drive
      Optical Drive                                     PIONEER DVDRW   DVR-K15

    Partitions:
      C: (NTFS)                                         76269 MB (18646 MB free)
#18
QuoteI don't know why it didn't just point me to line 88 (the problem) instead of line 131 (a totally unrelated function) though...
Mostly because it's very hard for the compiler to point out where something *missing* is. ;) All it could do was show you that there should not have been a function declaration at line 131.
#19
Critics' Lounge / Re: QUESTIoN BACKGROUND
Tue 05/02/2008 18:49:50
Quote from: mario62 on Tue 05/02/2008 18:46:31
but it will take me a hole day or two for shading a table like in the background
It takes time to make a good background.
#20
Quote from: Snake on Mon 04/02/2008 16:16:23
Simplest way to do this:

Use a global int to tell when it is night or day and use the command SetBackgroundFrame();.

It would be better to create a global boolean instead. That would make the code a lot more readable.
SMF spam blocked by CleanTalk