Please login or register.

Login with username, password and session length
Advanced search  

News:

For WME related articles and tutorials visit WME Resource Center.

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

Pages: 1 2 [3] 4 5 ... 7
31
Technical forum / Re: About sprite animation
« on: August 06, 2012, 10:03:50 AM »
I think I found what It was.
Sprite must be set on next-to-last frame.

32
Technical forum / Re: About sprite animation
« on: August 06, 2012, 09:37:07 AM »
i did a blank, when i wrote this post, in scripts no blanks.


about errors WME throws. WME just don`t respond on Esc and i had to used ctrl+alt+del.

Code: [Select]
-----------------------------------------------------------------
---------- wme 1.9.001 crash report: 06-08-2012, 14:41 ----------
-----------------------------------------------------------------
wme.exe caused a EXCEPTION_ACCESS_VIOLATION in module wme.exe at 001B:00000000
EAX=00000000  EBX=04E418A0  ECX=04E3E808  EDX=04E58C40  ESI=00000000
EDI=0000000C  EBP=04E4CDB0  ESP=0012FD60  EIP=00000000  FLG=00010202
CS=001B   DS=0023  SS=0023  ES=0023   FS=003B  GS=0000
Stack trace:
001B:00000000 (0x04E4CDB0 0x0C5F471E 0x0000000C 0x00000017) wme.exe
001B:00440162 (0x656D6172 0x090C0C00 0x00030011 0x0208013B) wme.exe
001B:46746E65 (0x00000000 0x00000000 0x00000000 0x00000000) <UNKNOWN>

33
Техниче�?кий фор�?м /
« on: August 06, 2012, 09:25:39 AM »
Привет. У меня проблема

34
Technical forum / Re: About sprite animation
« on: August 06, 2012, 09:07:22 AM »
I still trying to solve this problem
i add global variable ind_act = 1 if sprite was animated.

in scene_init.script

Code: [Select]
global indicator = Scene.GetNode("indicator ");
global ind_act;
global indicator _sp = indicator .GetSpriteObject();
if(ind_act == 1)
{
indicator _sp.CurrentFrame = 6;      // 6 - last frame
indicator _sp.Pause();
}
else indicator _sp.Pause();

i thought it must work, but WME give fatal error.

35
Technical forum / Re: About sprite animation
« on: August 04, 2012, 06:41:28 PM »
Hi,

 I`ve got some problem with sprites.

I create noloop anim sprite in scene_init.script.
Code: [Select]
global indicator = Scene.GetNode("indicator");
global indicator_sp = indicator.GetSpriteObject();
indicator_sp.Pause();

.. then in indicator.script

Code: [Select]
on "LeftClick" {indicator_sp.Play();}
After animation, indicator sprite change color from green to red.
Then actor goes to another scene and back, indicator is green again (!?).
How to fix this?


36
Technical forum / Re: Walk and run animation
« on: August 01, 2012, 09:40:54 PM »
and how to add some other animation after stop running?

37
Technical forum / Walk and run animation
« on: August 01, 2012, 08:13:14 PM »
Hi,

By default actor have walk animation. How to add run animation and associate its activation with some button?

38
Technical forum / Re: Create Sprite
« on: July 19, 2012, 03:58:31 PM »
What is the difference?

39
Technical forum / Re: Create Sprite
« on: July 16, 2012, 02:22:10 PM »
I have finished my trees generator,
can someone check out?

Code: [Select]

///////////////////////// trees initialisation
for (var b=0;b<800;b=b+50)
{
var tree_frequency =  Random(1,4);
if (tree_frequency == 3) // trees far
{
var flora = Scene.GetLayer("flora");
var tree_f = flora.AddEntity(2, "tr_f");
var chose_tree_f = Random(1,2);
if (chose_tree_f == 1) tree_f.SetSprite("gfx\tree1_f.sprite");
if (chose_tree_f == 2) tree_f.SetSprite("gfx\tree2_f.sprite");
tree_f.X = b; tree_f.Y = 450; tree_f.Scale = 100; tree_f.Interactive = false;
}
if (tree_frequency == 4) // trees near
{
var main = Scene.GetLayer("main");
var tree_n = main.AddEntity(2, "tr_n");
var chose_tree_n = Random(1,2);
if (chose_tree_n == 1) tree_n.SetSprite("gfx\tree1_n.sprite");
if (chose_tree_n == 2) tree_n.SetSprite("gfx\tree2_n.sprite");
tree_n.X = b; tree_n.Y = 450; tree_n.Scale = 100; tree_n.Interactive = false;
}
}


40
Technical forum / Re: Create Sprite
« on: July 13, 2012, 09:16:38 PM »
i`ve got another trouble. Trees appears on the foreground, i need them in the back.
i try GetLayer and AddEntity methods, but it doesn`t work

Code: [Select]
for (var b=0;b<800;b=b+50)
{
var tree = Scene.GetLayer("flora").AddEntity("tr");
tree.SetSprite("gfx\tree1.png");
tree.X = b; tree.Y = 340;
}

41
Technical forum / Re: Create Sprite
« on: July 13, 2012, 08:38:09 PM »
...oh sorry i find my mistake, it wasn`t in same names of entities, it was in first line
Code: [Select]
for (var b=0;b<10;b=b+10)it must be
Code: [Select]
for (var b=0;b<800;b=b+100)
but in anyway thanks


42
Technical forum / Create Sprite
« on: July 13, 2012, 12:00:53 PM »
Hi,

I want to create sprites in scene by this script

Code: [Select]
for (var b=0;b<10;b=b+10)
{
var tree = Scene.CreateEntity();
tree.SetSprite("gfx\tree1.png");
var c =  Random(1,3);
if (c == 3)
{
tree.X = b; tree.Y = 340;
}
}


... but I don`t know how to attach a name to every tree.

43
Technical forum / Re: Changing a sound on frames
« on: July 05, 2012, 09:03:09 AM »
Thanks!

44
Technical forum / Changing a sound on frames
« on: July 05, 2012, 08:23:34 AM »
Hi,

In a walk sprite of an actor I added sound "step_ground.ogg" on a frame #2 and #6.
When {surface = 1} a sound on this frames must be changed to "step_floor.ogg".
How can I do that?

45
Technical forum / Re: inventory problem
« on: June 05, 2012, 07:24:46 PM »
thanx

Pages: 1 2 [3] 4 5 ... 7

Page created in 0.034 seconds with 19 queries.