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

Author Topic: alone in the dark  (Read 4702 times)

0 Members and 1 Guest are viewing this topic.

tinchopunk

  • Occasional poster
  • **
  • Karma: 0
  • Offline Offline
  • Gender: Male
  • Posts: 90
    • View Profile
    • martinarregui.tumblr.com
alone in the dark
« on: February 17, 2005, 10:25:48 AM »

ok how can i make something like alone in the dark...
more like the part of shoting, the rest i know
and always in 3D
thanks
 MArtin
Logged

Igorrr

  • Regular poster
  • ***
  • Karma: 0
  • Offline Offline
  • Gender: Male
  • Posts: 130
  • Ugh...Ughugh!!!!!!
    • View Profile
    • Struggle For Life And Honour
Re: alone in the dark
« Reply #1 on: February 17, 2005, 07:46:18 PM »

Hi Timchopunk,

I did not try the 3D Actor implementation, yet. Some others here might give you more information about the actual implementation, but if you take a look at the WME Demo you can already see how the 3D actors behave. I never played AITD 4 but if you mean the general Style of the first 3 games it's fairly simple.
The actors were 3D but not the rooms. So actually you just create the rooms from whatever angle you wish, make your walkable areas and implement your 3D actor. If you want the rooms all to be in different angles (top, side, diagonal view) I don't know if you can simply tell the game to change the view angle of the 3D character or if you needed to implement it in different angles. Mnemonic please help out here :-)

What do you mean with "Shoting"??? Do you mean shooting with a gun?
In this case create a entity (e.g. Bullet) and have this entity move (you might also use the method "walk" for this) in the direction you are shooting. While this object is moving you can have it's position checked. If it enters an area that would mean a target hit you can trigger the hit as an event. If you can tell me clearly what you are trying to do, maybe I can give you an answer.

Another thing you have to keep in mind is, if for example a monster is to follow you through many screens. You simply have to, when loading a new screen, transfer information of the following monster while the new scene is initialized.
Logged

tinchopunk

  • Occasional poster
  • **
  • Karma: 0
  • Offline Offline
  • Gender: Male
  • Posts: 90
    • View Profile
    • martinarregui.tumblr.com
Re: alone in the dark
« Reply #2 on: February 19, 2005, 02:08:05 AM »

i was looking more the idea of shotting gun, or use some knife, i don´t know if somebody make something of that, some example work great with me...
(all the things in 3d, like making the scene and character are an easy part for me)
thanks
 Martín
Logged

Igorrr

  • Regular poster
  • ***
  • Karma: 0
  • Offline Offline
  • Gender: Male
  • Posts: 130
  • Ugh...Ughugh!!!!!!
    • View Profile
    • Struggle For Life And Honour
Re: alone in the dark
« Reply #3 on: February 19, 2005, 05:40:50 PM »

Well as in the post before you can use an entity for bullet and have it move in the direction you are shooting. every step the the bullet of your gun is taking (so in this case the movement is step by step in a loop until it hits an object or leaves the screen) you check if it is hitting an object. If an object is hit you trigger an event for the hit.
To code it here in true WME code would be too much just for explaining the idea.

In pseudocode it's something like this:

Shoot
{
 create_entity("bullet");
while (hit==false)
 {
  bullet.moveto(directionXYZ+1);
  if (area!=null)
   {
     area.TriggerEvent("hit");
     hit=true;
   }
}

and for the object

if (area==monster)
  {
    monster.hitpoints-10;
    if (monster.hitpoints>=0) monster.Event("die");
    else monster.playanimation("hurt");
  }
else if (area==wall) wall.PlayAnimation("shotatwall");
etc.....

But there is also another way. In case of a gun and assuming the bullet is so fast that you wont see it, you don't need a bullet entity moving through the seen. You could simply check if the monster is in line of fire. But for throwing a knife you should use the first idea.
Logged

tinchopunk

  • Occasional poster
  • **
  • Karma: 0
  • Offline Offline
  • Gender: Male
  • Posts: 90
    • View Profile
    • martinarregui.tumblr.com
Re: alone in the dark
« Reply #4 on: February 20, 2005, 03:12:21 PM »

Ok Igor that´s a good help but i can´t make it cose i´m to bad with scripting....
So i have to change my plans and make something like a shooting range in archery... any help?
i need power of the shot and distance easy to make in 3d....
thanks
 Martin
Logged

tinchopunk

  • Occasional poster
  • **
  • Karma: 0
  • Offline Offline
  • Gender: Male
  • Posts: 90
    • View Profile
    • martinarregui.tumblr.com
Re: alone in the dark
« Reply #5 on: February 23, 2005, 04:50:10 AM »

ok any help for that???
i´m so lost in scripting, i  need some example in wintermut and then i can do anything...
please i have my proyect stop
thanks
 Martin
Logged
 

Page created in 0.04 seconds with 24 queries.