Quote:

I noticed one more thing.
When start level,click rmb (mouse pointer apear),then click(rmb) on entity=
nothing happen.
When click rmb on entity again = panell apear.
Why must click two time?
Can it be only one click on entity for panel apearing?



Yeah, I know :/
I tried inserting a "wait(1);" in the beginning of function init_mouse, but that didn't work very well...
I'll tell you if I find a solution

EDIT: Got it! Here ya go

Code:
function init_mouse()
{
if((mouse_pos.x < selectionPan.pos_x
|| mouse_pos.x > selectionPan.pos_x + bmap_width(selectionPan.bmap))
|| (mouse_pos.y < selectionPan.pos_y
|| mouse_pos.y > selectionPan.pos_y + bmap_height(selectionPan.bmap)))
{
selectionPan.visible = off;
}
wait(1);
mouse_toggle();
}



Quote:

Can you please add animation run (for example) for button "e" with some sound
for it.(like for "q" button,so i can add latter more buttons for diferent
animations ) I tried to do it by myself ,but got errors.



Sure

Code:
action plActor
{
my.material=mtl_xzmaterijal;
animateMe();
my.enable_click = on;
my.enable_rightclick = on;
my.event = actorClicked;
while(my)
{
if(my.active)
{
my.ambient = 100;
my.anim_state = state_stand;

if(key_q)
{
my.anim_state = state_spin;
snd_stop(my.skill22);
if(!snd_playing(my.skill32))
{
my.skill32 = snd_loop(sound_on_q,100,10);
}
}
else
{
if(key_e)
{
my.anim_state = state_bounce;
snd_stop(my.skill22);
if(!snd_playing(my.skill32))
{
my.skill32 = snd_loop(sound_on_e,100,10);
}
}
else
{

snd_stop(my.skill32);
if(!snd_playing(my.skill22))
{
my.skill22 = snd_loop(sound_on_idle,100,10);
}
}
}
}
else
{
snd_stop(my.skill22);
snd_stop(my.skill32);
my.ambient = 0;
my.anim_state = state_stand;
}
wait(1);
}
}



Last edited by Claus_N; 07/06/06 21:21.