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

#1
Hallo. It´s me again with another newbie question.  ;)

I imported tween module to my game and i woud like to make it work in room scripts. But there is error: Undefined Token ´TweenRegionLightLevel´
Whole script looks:

function region1_WalksOnto()
{
  TweenRegionLightLevel (Region * 1, 0.5,  40, eLinearTween, eNoBlockTween); // Im not sure about this Region * 1
}

I´ve tried to figure it my self by studying Tween Demo game but unsuccesfully. (I accualy don´t know what to look for :P )
If there is some sort of tutorial about this please link it. It would help me with another custom functions i´m going to create later.


#2
Above that line? Good to know. ;)

Got it!
Thanks again.

#3
Something is wrong with this script:

function cLoring_Talk()
{
  if (cSydny.Room == 1)
  {
    if (Game.DoOnceOnly ("TalkLoringCell") == true)
    {
      cSydny.Walk (600,  590, eBlock, eWalkableAreas);
      cSydny.FaceCharacter (cLoring, eBlock);
      cLoring.Say (" Dress yourself girl. We havent got all day. ");
      cSydny.Say ("But i wanna kno...");
      cLoring.Say ("You can ask qestions once we get out of here.");
    }
  }
}

Error: Nested functions not supported (You may have forgotten a closing brace)

Can somebody tell me what´s wrong? This script accualy worked already. I´m sure i didn´t make any changes in it, but in one moment ags just started to write this error. Only thing i changed since i tested this script was few changes in other scripts whitch aren´t related with this one.
I´ll be glad for any suggestios how to solve it.
#4
You are miracle Khris. :) Problem solved
#5
Thanks Khris. It helps a little but not entirely.
It´s interesting. Sometimes when i scroll lower edge it works just fine. No error at all. But sometimes it crash anyway. I tried to find why is that but i didn´t found legality... ???
#6
Thanks guys. Works fine.

Yet there is one problem.
When i scroll mouse over lower edge of screen, the game crushes. It writes: "GUI.Y: co-ordinates specified are ou t of range."

I´m not experienced enough to fix this bug myself. Can you help me with that?
#7
It must by something incredibly basic or incredibly complex. I couldn´t find solution trough entire forum. :)

Basicly... I want to show name of Hotspot, Object, Character and Inventory item when mouse scroll over it. The text should be locked on side of cursor and should dissapear when mouse leave current object.
This feature should give player feedback that he is just pointing on sometnhing interactive and not just background. I´ve seen it in many games and i would like to have this feature in my own.

So i ask.
Is there any way to do it? I was looking for some Module but unsuccesfuly.
If you are willing to share your own solution, i would be eternaly grateful.

Thanks ;)
SMF spam blocked by CleanTalk