Please login or register.

Login with username, password and session length
Advanced search  

News:

Latest WME version: WME 1.9.1 (January 1st, 2010) - download

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

Pages: [1] 2 3
1
Technical forum / Keyboard key "P" always pause the game
« on: February 08, 2012, 02:05:51 PM »
It's a bit strange, whenever i hit "p" button the pause menù is loaded.

But the only control for that menù is:
Code: WME Script
  1. if(Keyboard.KeyCode==VK_ESCAPE || Keyboard.KeyCode==VK_F1)

i cannot found the solution in keys.inc...the P code should be 80 but there isn't.
What i'm missing?

2
Technical forum / Re: "ActorEntry" event on Region object
« on: January 18, 2012, 08:57:52 PM »
...and metamorphium will be in advantage :P

3
Technical forum / Re: GUI fixed elements on the screen
« on: January 18, 2012, 02:14:31 PM »
Good :D Thank you!

4
Technical forum / GUI fixed elements on the screen
« on: January 18, 2012, 09:55:49 AM »
So here we are with my daily question  :D

What about fixed elements on the screen (like GUI object)? If my scene is 1024x768 and my main layer is 2000x768...how can i show a window (or something) that "follow" the scene scroll and remain visible and at its position, wherever the actor it's going?

I thought that i can add a new layer (GUI layer 1024x768) to all my scenes, with highest z-index, where i load all my gui-window. Could be right solution?

5
Technical forum / Re: "ActorEntry" event on Region object
« on: January 18, 2012, 09:34:07 AM »
ahhaha don't worry! finally the international language won't be the english, but the chinese, and then the problem will become serious!  :P  :P  :P

6
Technical forum / Re: Call to undefined method
« on: January 17, 2012, 01:03:41 PM »
All right! ToLowerCase doesn't return a String Object, so now it works perfectly!

7
Technical forum / Re: "ActorEntry" event on Region object
« on: January 17, 2012, 12:53:12 PM »
Ok! thank you for your reply wich were very helpful!

I don't want a region that triggers event only one time, so the problem, according to metamorphium's advise, is that i have a sprite entity that skips to this region in my init scritpt.
So ActorEntry event is activated not only by the actor itself! I did not know  :-[

Will be easy to fix the code now :)
Thank you again!

8
Technical forum / "ActorEntry" event on Region object
« on: January 15, 2012, 08:31:05 PM »
I have a strange bug with a trigger region.
This region is activated when an event occured in game, and has a script attached that is executed when the actor entry this region (actorentry event).

I've set the SaveState attribute of this region to true, so when i return the scene, my region is regularly activated, and it's ok...but wherever my actor enters the scene he activates the trigger and the actorEntry event is executed...how is that possibile?
I can't find a solution...

9
Technical forum / Re: File Object, ReadLine method
« on: January 15, 2012, 05:40:55 PM »
right! Thank you! ;)

10
Technical forum / Re: Call to undefined method
« on: January 15, 2012, 05:38:29 PM »
I have to resume this post because i found the same problem.
I have an editor where player can write some text, and i want to split it in token using space character as separator

this is my code

Code: WME Script
  1. var solution = new String(text);
  2. solution = solution.ToLowerCase();
  3. var solutionArray = solution.Split(" ");

I get a "Call to undefined method 'Split'" error.
Any idea?

11
Technical forum / Re: Close event on "Menu" window
« on: January 14, 2012, 12:39:00 AM »
It's not controlled directly by the engine, maybe the code you need to modify is in your game.script file (scripts/game.script)
There you can see a function "on Right Click" that controls menu window behaviour, there you can modify code as you wish!

There are two lines like
// is the righ-click menu visible? hide it
  if(WinMenu.Visible == true) WinMenu.Visible = false;

so this is the part of code where you can add instructions to "close" (or just make invisible, like the code above), even using animation

I've never try to code something like this yet, but i think this can be a solution !

12
Technical forum / Re: Close event on "Menu" window
« on: January 13, 2012, 10:07:24 PM »
Welcome fsaenz!
You can set an animated sprite when the close event occur...before calling the window.Close() method, but you have to manage other elements in the window (like title, text, buttons...)

I think that you have to write a function wich sets all other elements' visible attribute to false and then sets the animated sprite

13
Technical forum / Re: File Object, ReadLine method
« on: January 12, 2012, 01:51:52 PM »
Sorry I forgot to ask one more thing about this,
how can i write a while "there is line" {file.ReadLine()} cicle?

Is correct to write something like
(while file.ReadLine())
 

14
Technical forum / Re: File Object, ReadLine method
« on: January 11, 2012, 09:18:36 AM »
Wow, very nice and simple!
No nextLine, hasLine, blablaLine method :D  Thankyou!

15
Technical forum / File Object, ReadLine method
« on: January 10, 2012, 10:40:51 AM »
It's not really clear how ReadLine() method works.
It reads "a" line...but how can i read each line of my file? There is an index to pass as a parameter for this method?

Pages: [1] 2 3

Page created in 0.05 seconds with 24 queries.