Help with making enimies!

Started by , Sun 09/04/2006 17:56:57

Previous topic - Next topic

hotshot102

I cant make any enimies work, how exactly do I make an enimie attack?

Kweepa

You could try provoking them.
Perhaps a witty one-liner about their mother?
Still waiting for Purity of the Surf II

Pumaman

Please be more specific than this. How have you set up the enemies, what have you tried so far, and what doesn't work?

hotshot102

#3
I cant make any enimies work, how exactly do I make an enimie attack?
I tried making a hotspot enimie with a script and it didnt work and i have no clue how to make an enimie be an enimie

Scummbuddy

Yes, but you need to fully detail out to us what kind of game you are making? is this an arcade game where they are only coming straight at you, like a fps and you are stationary? perhaps like Time Crisis?


are you doing a shooter with shooter where the bad guys are practically stationary? ala Leathal Enforcers?


are you creating a third person view game,  like Zombies ate my neighbors, or smash tv?


Something else? Please be as specific as you can.
- Oh great, I'm stuck in colonial times, tentacles are taking over the world, and now the toilets backing up.
- No, I mean it's really STUCK. Like adventure-game stuck.
-Hoagie from DOTT

hotshot102

I am tring to make a game were you are playing and suddenly you are attacked

Scummbuddy

Please answer our questions. Be SPECIFIC. Tell us exactly how you have it planned out. We understand a little of what you are saying, but now I have it in my mind that it will be a bit like Final Fantasy. Where you're walking around and all of the sudden, you get pulled into a fight sequence. Is this what you are talking about?

I suppose I would use the random function (check the manual/help file) and I'd choose, lets say, 40 to be the number, out of 100 to be when to call the fight scene to start.

So you'd have your room, where you are able to walk freely around, and have repeadetly running, a check, perhaps with a "wait" function inbetween each check, or using a timer, to see if that number just randomized out of a hundred is equal to 40. If so, go to a new room, and begin the fight sequence, ala Final Fantasy.
- Oh great, I'm stuck in colonial times, tentacles are taking over the world, and now the toilets backing up.
- No, I mean it's really STUCK. Like adventure-game stuck.
-Hoagie from DOTT

hotshot102


R4L

I have two questions.

1) Have you practiced the script for a bit? Would you understand Def's code if he gave it to you? If nnot, then it's all a matter of practice for now.

2) Did you search for a similar topic?

But, hey, I made the same mistakes the first day I joined.

Khris

hotshot:
It's enemy and enemies.

I doubt that Def's code would help you. (Without long detailed instructions how to implement it.)
Try to figure out AGS using the manual, the tutorial inside the manual, check out the demo game and so on. By the time you get a basic understanding of how AGS and scripting works, you'll be able to write that code yourself.

Ashen

As has been said, it's not really going to be possible without scripting. You should make sure you're at least reasonably familiar - and comfortable - with AGS scripting before starting this.

Scummbuddy actually went someway to answering you, so look at his reply again:
Quotehave repeatedly running, a check
So, in the Interaction Editor, this'd be in the 'Repeatedly Execute' interaction for the room you want the enemies to attack in.
Quoteor using a timer
Look up Set Timer and IsTimerExpired.
Quotenumber just randomized out of a hundred is equal to 40
Look up Random to get the random number, and working with variables (the BFAQ and any one of a dozen threads on the forums should help there).

Beyond that, you're going to have to finally answer the question on how EXACTLY you want the attack to happen. A recent Coding Competition had a few RPG-style options that might be of use, there's a couple of boxing-type engines and a couple of shoot 'em up scripts you could search for and use (the Open SOurce archive might be some use), or you could try describing your own preference in detail and see what we can do (once you're sure you can't go any further on your own).
I know what you're thinking ... Don't think that.

SMF spam blocked by CleanTalk