Please login or register.

Login with username, password and session length
Advanced search  

News:

This forum provides RSS feed. To query recent posts use this url. More...


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

Pages: [1]
1
Technical forum / Re: controlling scene with mouse
« on: April 09, 2010, 06:44:38 PM »


yes true.. i meant something like your example.

2
Technical forum / Re: controlling scene with mouse
« on: April 09, 2010, 05:14:23 PM »


Sorry my english is very crazy :)

Which things can i access with MouseEntry event?
for example: can i access background entity? actors?

if it is possible, it might be usefull for me.


Thanks again.

3
Technical forum / Re: controlling scene with mouse
« on: April 09, 2010, 12:41:18 PM »


This is bad :)

I have idea. background entity has mouse over.. right?
when i came to over backgorund.skipto scene..something like this.. maybe it work.
Can i access backgorund with mouse over?

4
Technical forum / Re: controlling scene with mouse
« on: April 08, 2010, 09:47:48 AM »


Hello ,


İ have different problem.Your code works but so fastly ,also my keyboard code doesnt work with this?
Actually i want to move my scene with mouse over but i couldnt it.
if there is a sample game for this based WME , Can you tell me? i can understand well with a sample.



Best Regards.

5
Technical forum / Re: controlling scene with mouse
« on: April 06, 2010, 11:17:34 PM »
Put this to the end of your scene_init.script file for the scene in question.

Code: WME Script
  1. while (1)
  2. {
  3.    Sleep(60);
  4. }
  5.  



Oh really thanks!

I hope that to solve this engine ,i liked it :)


6
Technical forum / controlling scene with mouse
« on: April 06, 2010, 10:25:29 PM »


Hello All,


I searched on forum and documantation.Also i tried alot of methods.but i couldnt do it :)

İ can move scene by keyboard like this

on "Keypress"
{
 
 
if (Scene.CanHandleEvent("Keypress")) Scene.ApplyEvent("Keypress");



switch(Keyboard.KeyCode)
{
case VK_UP:

      Scene.SkipTo(posX, posY-50);
     posY=posY-50;
     break;
    
case VK_DOWN:

      Scene.SkipTo(posX, posY+50);
     posY=posY+50;
     break;

case VK_LEFT:

      Scene.SkipTo(posX-50, posY);
     posX=posX-50;
     break;
    
case VK_RIGHT:

      Scene.SkipTo(posX+50, posY);
     posX=posX+50;
     break;

}

i can move scene with left click like this

on "LeftClick"
{

Scene.SkipTo(Scene.MouseX, Scene.MouseY);
}



But i cant move scene by mouse over :(

What should i do ?




Best Regards.

7
Game announcements / Re: My first WME Scene
« on: April 05, 2010, 11:36:34 PM »

Here's a playable scene from my tinkerings with WME.  I really dig this engine!

Download here:
http://www.bigmoon.net/leo.zip (about 10M)
Unzip and throw it in a folder with wme.exe


It's still a bit rough around the edges.  Who knows, I might even make a whole game.

Oh yeah, it's compiled with build 19 and requires hardware acceleration.


The wme.exe (WME engine runtime) can be downloaded here:
http://www.dead-code.org/download/wme_runtime.zip (400 KB)



Hello,


this link broken :(

8
Technical forum / White rectangles on scene
« on: April 05, 2010, 11:23:08 PM »


Hello All,


there are some rectangle on scene. what are these?



and i dont want to see them.How can i cancel them?




Best Regards..

9
Technical forum / About Mouse Event
« on: April 04, 2010, 09:45:20 PM »


Hello All,


How can i handle "mouse over"?
i searched on documentation, i found these but there is no about mouse over.

LeftClick The left mouse button has been pressed.
RightClick The right mouse button has been pressed.
MiddleClick The middle mouse button has been pressed.
LeftDoubleClick The left mouse button has been double-clicked.
RightDoubleClick The right mouse button has been double-clicked.
LeftRelease The left mouse button has been released.
RightRelease The right mouse button has been released.
MiddleRelease The middle mouse button has been released.
MouseWheelUp The mouse wheel has been rolled up.
MouseWheelDown The mouse wheel has been rolled down.
Keypress Some key has been pressed. Use the Keyboard variable to find out the details.


Best Regards


10
Technical forum / Re: i cant upload image to scene
« on: March 29, 2010, 07:14:32 PM »


Thank you so much. it is ok now. but i have another problem :)
i try to do a panoroma..you know.. and my image has width=wdith= 17845,  height=1791.
And i cant set my scene 's main layer's width . because integer can be 10000.
What should i do this stuation ?



Best Regards.

11
Technical forum / Re: i cant upload image to scene
« on: March 28, 2010, 10:07:24 PM »


Really thanks, i am asking so easy question...i know... but i am so new and i havent time...

Now .i am wrote these codes under the scene_init.script  and  myscene.script.i tried both.but it doesnt work :(



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

on "Keypress"
{
   if (Scene.CanHandleEvent("Keypress")) Scene.ApplyEvent("Keypress");
 
  if (Keyboard.KeyCode == VK_UP)
{
      Scene.SkipTo(Scene.X, Scene.Y-50);
}
else if (Keyboard.KeyCode == VK_DOWN)
{
      Scene.SkipTo(Scene.X, Scene.Y+50);
}
else if (Keyboard.KeyCode == VK_LEFT)
{
      Scene.SkipTo(Scene.X-50, Scene.Y);
}
else if (Keyboard.KeyCode == VK_RIGHT)
{
      Scene.SkipTo(Scene.X+50, Scene.Y);
}


}

12
Technical forum / Re: i cant upload image to scene
« on: March 28, 2010, 08:32:06 PM »

yeah some big image.but it is ok. i uploaded.
now i want to control my background image by keyboard.
i wrote these codes under the scene_init.script. but it doesnt work..


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

// here comes the stuff which initializes the scene





////////////////////////////////////////////////////////////////////////////////
// scene state
global Statepanoroma;


// default values
if(Statepanoroma==null)
{
  Statepanoroma.Visited = false;
  // add scene states here
    if (Keyboard.KeyCode == "VK_UP")
{
      Scene.SkipTo(Scene.X, Scene.Y-50);
}
else if (Keyboard.KeyCode == "VK_DOWN")
{
      Scene.SkipTo(Scene.X, Scene.Y+50);
}
else if (Keyboard.KeyCode == "VK_LEFT")
{
      Scene.SkipTo(500, 300);//Scene.SkipTo(Scene.X-50, Scene.Y);
}
else if (Keyboard.KeyCode == "VK_RIGHT")
{
      Scene.SkipTo(Scene.X+50, Scene.Y);
}
}



////////////////////////////////////////////////////////////////////////////////
// setup scene according to state variables



////////////////////////////////////////////////////////////////////////////////
if(!Statepanoroma.Visited)
{
  Statepanoroma.Visited = true;

  // this is our first visit in this scene...
 


}


13
Technical forum / i cant upload image to scene
« on: March 28, 2010, 07:23:17 PM »

Hello,


i created a scene and i want to upload a background image this. but i am taking some errors..

CBImage::CreateTexture tile at 0,7 no texture set ..
CBSurfaceD3D:CreateEmptyTexture error creating an empty texture.
error gettting texture ...
..
...
..


help me, please



Best Regards.

Pages: [1]

Page created in 0.025 seconds with 22 queries.