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

Pages: [1] 2 3 ... 5
1
Technical forum / Re: One script and a lot of sprites
« on: May 09, 2012, 10:33:45 PM »
Quote
Whats so hard about adding a script to each sprite? It is made automatically, and it just use the

on "LeftClick"
{
this.Visible = false;
}

20+ levels with 10+ sprites... I'm to lazy to do it with each sprite :)

LOL

2
Technical forum / Re: Use Buttons like keyboard !
« on: April 10, 2012, 12:20:00 PM »
Thanks spellbreaker
but i really don't understand nothing about scripting can you explain step by step  ::slug ::slug ::slug ::slug

3
Technical forum / Use Buttons like keyboard !
« on: April 09, 2012, 06:30:54 PM »
Hi guys ,
How are You ?
I have a little problem !!!

Here's my problem : I have a some buttons and a editor in a window , I'd like to use this buttons like the numbers in the keyboard .
But I have no idea how to do it .

on "one" {

code ????

}

what should insert ??

thanks guys !

4
Game announcements / Re: J.U.L.I.A. Playable demo now available
« on: February 27, 2012, 10:50:35 PM »
Well DOne guys ! Love It !

5
Game design / Re: Drawings, paintings, sketches, concepts
« on: February 26, 2012, 01:32:40 PM »
nice work ! :)!

6
Technical forum / Re: Create a button by script !?!?
« on: February 26, 2012, 10:46:02 AM »
Thank  you Mnemonic !

7
Technical forum / Re: Create a button by script !?!?
« on: February 25, 2012, 10:30:05 PM »
if this code is actual, you have a few problems:

var delete = this.DeleteButton("buttno2"); //note a typo (buttno)

I am not sure you can delete button by name, correct way is:

Code: WME Script
  1.  
  2. var btn = this.GetControl("button2");
  3. this.DeleteButton(btn);
  4.  
  5.  


In this way it function !
But I tried to to delete it by clicking on it the code is the next and it doesn't function :(  ::slug ::slug ::slug ::slug
(I know that I'm being boring but i need your help metamorphium ! Sorry :(



Code: WME Script
  1. var c_map= this.CreateButton ("Maps");
  2. c_map.Name = "Maps";
  3. c_map.X = 20 ;
  4. c_map.Y = 40 ;
  5. c_map.Width = 35;
  6. c_map.Height = 40 ;
  7. c_map.SetImage("interface\omega\Maps0001.png");
  8. c_map.SetHoverImage ("interface\omega\Maps0002.png") ;
  9. c_map.Visible = true ;
  10. var btn = this.GetControl("Maps");
  11.  
  12. on "Maps" {
  13. this.DeleteButton (btn);
  14. }
  15.  
  16.  

8
Technical forum / Re: Create a button by script !?!?
« on: February 25, 2012, 07:54:44 PM »
so even if you do something like the following it doesn't work? Does the "Sanity check!" message display?

Code: WME Script
  1.  
  2. on "button1" {
  3.  
  4. Game.Msg("Sanity check!");
  5.  
  6. var button2 = this.CreateButton("button2");
  7. button2.X = this.Width * 0.5;
  8. button2.Y = this.Height * 0.5;
  9.  
  10. button2.Width = 200;
  11. button2.Height = 100;
  12.  
  13. button2.Text = "I am a button";
  14. button2.Visible = true;
  15.  
  16. }
  17.  
  18.  

well i'd like to delete it but it doesn't function  ::slug ::slug!
 the code is now :
Code: WME Script
  1.  
  2. on "button1" {
  3.  
  4. Game.Msg("Sanity check!");
  5.  
  6. var button2 = this.CreateButton("button2");
  7. button2.X = this.Width * 0.5;
  8. button2.Y = this.Height * 0.5;
  9.  
  10. button2.Width = 200;
  11. button2.Height = 100;
  12.  
  13. button2.Text = "I am a button";
  14. button2.Visible = true;
  15.  
  16. }
  17.  
  18. on "button2" {
  19.  
  20. Game.Msg("Sanity check!");
  21.  
  22. var delete = this.DeleteButton("buttno2");
  23.  
  24. }
  25.  
i added the game message to check it but nothing !
 ::slug ::slug ::slug ::slug ::slug ::slug ::slug

9
Technical forum / Re: Create a button by script !?!?
« on: February 23, 2012, 03:40:45 PM »
so even if you do something like the following it doesn't work? Does the "Sanity check!" message display?

Code: WME Script
  1.  
  2. on "button1" {
  3.  
  4. Game.Msg("Sanity check!");
  5.  
  6. var button2 = this.CreateButton("button2");
  7. button2.X = this.Width * 0.5;
  8. button2.Y = this.Height * 0.5;
  9.  
  10. button2.Width = 200;
  11. button2.Height = 100;
  12.  
  13. button2.Text = "I am a button";
  14. button2.Visible = true;
  15.  
  16. }
  17.  
  18.  

Thank you !!! :)
I really didn't think to make it visible :| ! ::rock

10
Technical forum / Create a button by script !?!?
« on: February 21, 2012, 05:59:53 PM »
Hi guys ,
I have a problem !
In a window i have a button and when i press this one i'd like that it create another button !
I have this code but it doesn't function ;

Code: WME Script
  1. on "button1" {
  2. var button2 = CreateButton("button2");
  3.  
  4. }
  5.  

please help me ! Thanks to all !

11
Technical forum / Re: Changing the window Image
« on: February 07, 2012, 02:41:43 PM »
Sorry guys !
I solved the problem !
Just adding a static editor and changing his image X) !

12
Technical forum / Changing the window Image
« on: February 07, 2012, 11:03:41 AM »
Can I change the window Image by script after pushing the button ?
I had this script  and my window name is omega :

#include "scripts\base.inc"
#include "scripts\keys.inc"
//variabile acensione e spegnimento Omega the mobile phone/////////////////////////////////////////////////////////////////////////////
var acensione ;
acensione = 0 ;
////////////////////////////////////////////////////////////////////////////////
on "button1" {
if (acensione == 0){
acensione = 1 ;
var Image_on ;
Image_on = this.GetControl("omega");
Image_on.SetImage("interface\omega\omega on.png");

}else{
Game.UnloadObject(this);
}

}



I have allways the same error

13
Technical forum / Unload window don't work !
« on: January 30, 2012, 09:36:16 PM »
Hi guys !
I need your help , I had a look on forum about the problem i have but i didn't find nothing !

Here's my problem :
I've created e new empty scene . In this scene i put this code :

Code: [Select]
#include "scripts\base.inc"
actor.Active = false;
///////////////////////////////////////////////////////////////
Game.SetCursor("ui_elements\mouse\mouse.sprite");

////////////////////////////////////////////////////
var [glow=red,2,300]WinMenu[/glow] = Game.LoadWindow("interface\system\menu2.window");
WinMenu.GoExclusive();

Well , I used in this script the var WinMenu to load a window with the GoExclusive(); method .

This menu is the game menu window , and when user click on New game it load another window with the same window , which ask to do tutorial or not . Well when user click on one of the options the game should unload the windows but this doesnt function .
this is the code on the tutorial ask window :

Code: [Select]
#include "scripts\base.inc"
#include "scripts\keys.inc"

this.xResult = false;


////////////////////////////////////////////////////////////////////////////////
on "close"
{
  this.Close();
}


////////////////////////////////////////////////////////////////////////////////
on "New Game"
{
Game.ChangeScene("scenes\intro00001\intro00001.scene");

Game.UnloadObject("interface\system\menu2.window");

   Game.UnloadObject(this);



 
 
}

////////////////////////////////////////////////////////////////////////////////
on "Keypress"
{
  var button;

  if(Keyboard.KeyCode==VK_ESCAPE)
  {
    button = this.GetControl("close");
    button.Press();
  }
  else if(Keyboard.KeyCode==VK_RETURN)
  {
    button = this.GetControl("yes");
    button.Press();
  }

Hope I described it clearly !

Thank you for your time ! ::rock



 ::beer ::beer ::beer ::beer ::beer ::beer ::beer ::beer ::beer ::beer ::beer ::beer ::beer ::beer ::beer ::beer ::beer ::beer

14
Game announcements / Re: The Kite (Released 2012)
« on: January 26, 2012, 01:26:35 PM »
well done ! ::thumbup ::rock

15
Scripts, plugins, utilities, goodies / Re: Flashlight script
« on: January 17, 2012, 03:43:40 PM »
nice idea !

Pages: [1] 2 3 ... 5

Page created in 0.044 seconds with 24 queries.