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


Author Topic: Questin On Keyboard Control  (Read 4441 times)

0 Members and 1 Guest are viewing this topic.

ZaHeR92

  • Lurker
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 13
    • View Profile
Questin On Keyboard Control
« on: April 10, 2009, 12:31:06 PM »

Hello everybody...
first ... I am sory for my bad English... ;D
but I wish you will undersand it...

now ...I Know how to make the actor moving via keyboard ...
but I don not know how to move it from scene to scene without using the mouse...

my actor is moving inside the scene very will

but between 2 scenes I must use the mouse...

can any body tell me how to move the actor from scene to other without using key board...

I mean like in resident evil 1 2 and 3...

thank you for hearing me...
« Last Edit: April 15, 2009, 12:07:09 PM by ZaHeR92 »
Logged

MMR

  • Global Moderator
  • Frequent poster
  • *
  • Karma: 3
  • Offline Offline
  • Gender: Male
  • Posts: 349
  • http://mmrdeveloper.wordpress.com/
    • View Profile
    • TinyWME
Re: Questin On Keyboard Control
« Reply #1 on: April 10, 2009, 12:36:48 PM »

One solution to achieve this could be by adding a region on the floor and scripting inside it the following event:

on "ActorEntry"
{
   Game.ChangeScene("desired_scene");
}

I hope this could help you.
Logged

ZaHeR92

  • Lurker
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 13
    • View Profile
Re: Questin On Keyboard Control
« Reply #2 on: April 11, 2009, 12:35:27 PM »

I will try it ...and I will see...


Thank You Very Much... :)
Logged

ZaHeR92

  • Lurker
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 13
    • View Profile
Re: Questin On Keyboard Control
« Reply #3 on: April 11, 2009, 01:07:55 PM »

thank you I try it and it succeed
Logged

ZaHeR92

  • Lurker
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 13
    • View Profile
Re: Questin On Keyboard Control
« Reply #4 on: April 11, 2009, 01:16:14 PM »

ok sir can you help me one more time ...

I want my actor to open doors and take things from the floor ((for axamplel)) by pressing "space" bottun or any Other...

first I want to know the spicific order to use key board like "OnKeyboardPress" ...

finally I dont know how to make a spiceal system for taking and using thikgs on my game((espiceally withe key board)) because I dont want to use mouse...

and thanks every body...
Logged

Mnemonic

  • WME developer
  • Administrator
  • Addicted to WME forum
  • *
  • Karma: 41
  • Offline Offline
  • Gender: Male
  • Posts: 5683
    • View Profile
    • Dead:Code Site
Re: Questin On Keyboard Control
« Reply #5 on: April 14, 2009, 03:43:53 PM »

The actual condition would be:

Code: WME Script
  1. if(Keyboard.KeyCode == VK_SPACE)
  2. {
  3.   ...
  4. }
  5.  

But knowing what item to pick up depends on how your scenes will be designed. You could for example have scene regions marking pickable items (similarly to the exit region described above). Then after the player presses the spacebar, you'd check if the actor is inside one of the pick-regions and grab the appropriate item.
Logged
Yes, I do have a twitter account
Please don't send me technical questions in private messages, use the forum. ::wave

ZaHeR92

  • Lurker
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 13
    • View Profile
Re: Questin On Keyboard Control
« Reply #6 on: April 23, 2009, 09:49:29 AM »

Thank you very much,,,


I start working right now....
Logged
 

Page created in 0.043 seconds with 22 queries.