Please login or register.

Login with username, password and session length
Advanced search  

News:

Forum rules - please read before posting, it can save you a lot of time.

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.

Topics - fireside

Pages: 1 2 3 [4] 5
46
Technical forum / elevator
« on: March 23, 2007, 12:58:33 AM »
How would you have the actor follow an elevator going up or down?  I thought about attaching the elevator to the actor and then moving the actor, and I may do that, I was just wondering what other ways there were.

edit:  I found PlayAnimAsync() in the help files.  Perhaps that would be best.  I can just put them both in a loop.

47
Technical forum / for loop doesn't start on zero
« on: March 18, 2007, 09:45:23 PM »
I can't seem to get the for loop to start on zero as in this code:
Code: [Select]
for(var i = 0;i<6;i=i+1)
{
 Game.Msg(i+1);
}
}

I tried using i+1 in the Msg to see if it wasn't printing zero, but it starts on 2.

edit: never mind
it must be the way Msg prints to the screen or the number of lines.  This code prints zero:
Code: [Select]
for(var i = 0;i<6;i=i+1)
{
 if(i == 0)Game.Msg("zero");
}



48
Feature requests, suggestions / copying region size
« on: March 18, 2007, 07:02:34 AM »
I have similar entity regions quite a bit, but as far as I can tell, I need to resize each new region.  It would be nice if I could copy one that had a similar size.

49
Technical forum / PlayAnim with attached subframe
« on: March 14, 2007, 12:23:35 AM »
I have two animations right now using the main actor with PlayAnim.  In the climb one, when the animation is finished, the character resumes where the animation stopped, which is very nice.  On the other one, the character swings on a rope which is an attached subframe.  In this one, the shadow of the character gets left behind, and when the animation is finished, the character returns to the starting point, not where he finished.

50
Technical forum / moving inventory box
« on: March 12, 2007, 10:04:17 PM »
I was wanting to try the inventory box at the bottom of the screen so I changed the inventory.def file to this:
Code: [Select]
INVENTORY_BOX
{
  ITEM_WIDTH = 65
  ITEM_HEIGHT = 65
  SPACING = 10
  SCROLL_BY = 1
  HIDE_SELECTED = TRUE

  AREA { 30, 545, 770, 600 }
  EXCLUSIVE = FALSE

But when I run the game, it's still at the top of the screen.

51
Technical forum / syntax error
« on: March 10, 2007, 09:22:28 PM »
I'm getting a syntax error I don't understand.  It locks up the computer, also.  Anyway in base.inc I have:
global StatePark;

in Game.script I have:
StatePark.switches[0] = 0;//gives syntax error on this line

if I change the line to:
StatePark.switches = 0;

It works without error.
It says in the documentation we can use arrays and it would be much easier to do so.

52
Technical forum / Different script editor
« on: March 07, 2007, 06:59:33 PM »
I don't know if anyone else has run into this or it's something on my system, but I got a lightweight javascript editor and tried to set the defaults in xp control panel so it would come up instead of notepad.  I changed the INC and SCRIPT for this editor.  The .script files come up, but the .inc files still come up with notepad.  Anyone else come across this?

53
Technical forum / global variable problem
« on: March 06, 2007, 06:25:56 PM »
I want to sometimes turn off the default walk to a spot on left click.
I changed in the scene script:
Code: [Select]
on "LeftClick"
{
  // when the scene is left-clicked, just send the actor to the specified point

  if (leftWalk)
  {
  actor.GoTo(Scene.MouseX, Scene.MouseY);
  }

}

In the base I put:
Code: [Select]
global leftWalk = 1;

But when I put a:
leftWalk = 0;
in the scene_init for a particular scene, it has no effect.
Why is that?

54
Technical forum / ladder
« on: March 04, 2007, 10:37:12 AM »
How would you have a character go up and down a ladder with sprites for that, and then change sprites when he gets off, so he walks normal?

55
Technical forum / scene without actor
« on: February 18, 2007, 09:41:52 PM »
How do I do a scene without an actor in it?  I tried some things with load actor, etc, but nothing seems to work.  I want a blank screen with some text on it.

56
Technical forum / sitting down
« on: February 17, 2007, 10:02:36 PM »
I was wondering how you would have the actor sit down and stay sitting down until the mouse is clicked using sprites.  I know you use PlayAnim(), for the sit down, but then the actor reverts to the stand sprite after the animation is played.

57
Technical forum / cancel the right click menu
« on: February 13, 2007, 03:57:20 AM »
What's the simplest way to cancel the right click menu?  I don't know if I started the game right but I'd like to keep going with what I have for a while.  I just want a right click, left click system.  I can see it works to overwrite, but then I might miss it once in a while so I want a default nothing to happen on right click.

58
Technical forum / rename actor
« on: February 03, 2007, 09:44:59 PM »
I used the template to make an actor and then replaced files.  How do I change the name from "molly"?  I did that in the script, but the folder still says molly and I couldn't find a rename for the folder.
edit:  I see it's named when it's added.  I'm not sure what I did wrong there.  I might have just started reworking the sample app.  Very nice project manager.

59
Technical forum / blob shadow
« on: February 02, 2007, 01:12:43 AM »
I'm just curious right now as I'm just going through the documentation, but I was wondering how one would do the old fashion blob shadow with a character? 

60
Technical forum / sprite edit
« on: January 30, 2007, 02:38:28 AM »
Is there some way to position all the frames at once instead of setting them one at a time?

Pages: 1 2 3 [4] 5

Page created in 0.034 seconds with 18 queries.