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.

Messages - Yakuzza

Pages: 1 2 3 [4]
46
Technical forum / Re: How does Scene.GetLayer works?
« on: September 25, 2012, 08:52:09 PM »
Thanks metamorphium
But it just gives me an error Error@line 10: Trying to call method of a non-variable Debug

47
Technical forum / How does Scene.GetLayer works?
« on: September 25, 2012, 11:50:49 AM »
Hi!
I've tried to figure out how GetLayer works. But for some reason my code doesnt work
Code: [Select]
#include "scripts\base.inc"


var layer = Scene.GetLayer("Cam2");


on "LeftClick"
{
actor.GoTo(1105, 761);
actor.TurnTo(DI_DOWN);
layer.Active = true;
Scene.SetActiveCamera("Camera002");
}

Clearly there are 2 layers in the scene.
is there something else i should to in order to swith the layer?

48
Technical forum / Re: Invenotry item doesnt work
« on: September 17, 2012, 11:21:51 PM »
Oh i never covered online tuts.
Thanks again!

49
Technical forum / Re: Invenotry item doesnt work
« on: September 17, 2012, 07:29:54 PM »
Thanks metamorphium!
It was game.script handler i was missing.
To bad the tutorial never covered that area.

50
Technical forum / Invenotry item doesnt work
« on: September 16, 2012, 01:20:06 PM »
Hi guys!
I'm fairly new to the engine and i'm loving it so far. But i ran in to a problem using an inventory item on entity.
Every time i click on the region with my inventory item selected actor performs regular on "LeftClick" events.
Debug window shows no errors though.
I would really appriciate the help!
Here's the script
Code: [Select]
#include "scripts\base.inc"

on "LeftClick"
{

actor.GoTo(996, 412);
actor.TurnTo(DI_RIGHT);
actor.Talk("There could be something interesting on the other side.");
actor.Talk("If only i had something to help me to cross that gap...");

}

on "LeftDoubleClick"
{

actor.RunTo(996, 412);
actor.TurnTo(DI_RIGHT);
actor.Talk("There could be something interesting on the other side.");
actor.Talk("If only i had something to help me to cross that gap...");
}

on "ledder"
{
  actor.GoTo(995, 366);
  actor.TurnTo(DI_LEFT);
  actor.PlayAnimChannel(0,"pickup_low");
  Game.DeleteItem("ledder");
}

Pages: 1 2 3 [4]

Page created in 0.034 seconds with 18 queries.