|
Re: [intense-X] Touch and die? Sidescroller AI?
[Re: Drew]
#118132
03/20/07 20:21
03/20/07 20:21
|
Joined: Jul 2004
Posts: 1,205 Greece
LarryLaffer
Serious User
|
Serious User
Joined: Jul 2004
Posts: 1,205
Greece
|
Hi Drew, Quote:
Is it possible to have the AI touch and kill/strip health on contact with the player?
Yes, all you have to do is give your enemies an unarmed weapon, that deals, say... 5 damage per half a second or less.. So the more the player touches the enemies, the more damage he gets..
I made this weapon for you.. I regret not having an unarmed weapon example in the demo, cause a lot of people are having problems adding one...
Take note on the 2 meters range that I've set, and how I setted the type of the weapon as unarmed. When the weapon is unarmed, no actual weapon model will be created, and the shot will come out from the enemy model's origin point. So if the origin point is around the belly of your enemy, like it should, the enemy will inflict damage when the player is within 2 meters in any direction from its belly. Make sure its firing and combat animations are the same with its normal standing/walking animations, if you don't want your enemies to react when their touched (like a typical platform game). Though, i think it might be nicer if you had a nice unarmed animation playing, so it looks like if the player is near, your enemies are punching at him and stuff.. Your call
Somesthing that you may miss when comparing to a platform game though, is how if you take damage, you might get bounced back, blinking and stuff.. You'll have to code the bouncing, blinking part on your own I'm afraid.. I'll look how i can make the IntenseX more platform-game friendly in later versions..
Quote:
Also, Is it possible to create left,right sidescroller AI?
Sure, there won't be much you'll have to do there. Assuming you have a thin rail floor in your level where everyone walks on, then your enemies will only need to go towards the player, who is also standing on the rail. One thing you might want to adjust, is the turn speed of your Npcs. Make this high, so the Npcs can turn from one direction to the other almost instantly, so they don't fall off the rail while trying to turn around.
Have fun! I've seen the game you're working on, and I was really amazed by the style and uniqueness! If I wasn't so incredibly busy at this time, I'd offer to set IntenseX for you just to have a chance to work on your game for a bit. If you're not in a hurry, tell me again in a month or two, and i'm sure i'll be thrilled to give you a hand on this.
Cheers, Aris
|
|
|
|