Archived

This topic is now archived and is closed to further replies.

pap

patterns

Recommended Posts

pap    122
Does anybody knows a good tutorial in patterns, I already have Andre''s books and also searched Gdev and nothing, if someone could point me to one, please; also a little code would be apreciate. thanks in advance: pap

Share this post


Link to post
Share on other sites
NickGA    122
quote:
Original post by pap

Does anybody knows a good tutorial in patterns, I already have Andre''s books and also searched Gdev and nothing, if someone could point me to one, please; also a little code would be apreciate.

thanks in advance:

pap


I would be interested as well if anyone had some thoughts on the subject.


Share this post


Link to post
Share on other sites
kcsatyr    122
nahhh, surely he means Design Patterns, you know the kind ma and grandma used out of sundays paper to sew new clothing outfits!



Share this post


Link to post
Share on other sites
MikeD    158
Do you mean pattern matching?
That''s about the only pattern related AI thing I can think of. Although that is a fair amount of AI and covers neural networks, expert systems and basically any adaptive methodology.

Mike

Share this post


Link to post
Share on other sites
adammil    122
Actually we just need to know a bit more about what you''re looking for.. what kinds of patterns? If you told us what you were trying to do, we might be able to help you a bit better

Good luck,
Adam

Share this post


Link to post
Share on other sites
Akura    130
I think he means patterns has paths predefined and actions predefined to make some kind of AI



----
/ \
/ \
/ \
A B



this is pattern that makes somthing go from A to B followinf tha tpath

i thbink that is what pap meant

Share this post


Link to post
Share on other sites
ROMERO    122
I suppose that you want simple patterns to move your objects as Akura said.
I think that the example that André give is a good one.
You could create some instructions to move in a direction such as:
N - Move North
NE - Move NorthEast
E - Move East
SE - Move SouthEast
...

And then you could create an instruction with the command and the number of cycles to execute.
For example:
___
/
/___

E 30
S 25
E 30

Look in the code of André to see the complete implementation of this.

Of course you can use patterns to a lot of things.
If this isn''t what you want then you should be more specific about what kind of thing you want to do.

Share this post


Link to post
Share on other sites
pap    122
First of all sorry about that, I''ve should be more especific. Well the thing is that I want to know how to create the patterns on the fly and also how to implemt them so they can mimic the players action.

Share this post


Link to post
Share on other sites
Altmann    122
Now, that''s a better question. Too bad there is no easy answer.

To summarize, you should :
- model the concept of tactics/strategy for your game (I assume it is a strategy game)
- adapt the weights of sub-strategies to the player

In the (LGPL) AI Toolkit I''m working on, typically, this means :
- reduce the game to a set of elementary rules
- let the toolkit combine them into more complex rules/strategies
- apply Evolution Algorithms on the set of rules/strategies to have several competitor models of the player
- select them and make them evolve into an agent hopefully able to mimick the player

Of course, there might be better ideas. I would be willing to read them.

Be reading you,
David

Share this post


Link to post
Share on other sites
pap    122
After all the effort I put in my AI patterns don''t know how to do this:
I have like 20 monsters but all of them come out at the same time I just want themo to come like 3 at a time or 4 whatever, the thing I want it''s not all of them come out at the same time.
Any ideas please?????????

Thanks in advance.

Share this post


Link to post
Share on other sites
WhatEver    125
Group only a few at a time. Make it random wich sprites in a group get selected, and then when the selected group dies, have another group randomly selected.

Share this post


Link to post
Share on other sites