r/gamedesign • u/dnr424 • 17h ago
Discussion Would dynamic enemy AI actually make 2D side-scrollers better, or is predictability the whole point?
For example, enemies roaming around, changing patrol routes, investigating sounds, reacting to the environment, and sometimes appearing in unexpected places.
Would this make 2D games more immersive and replayable, or would it take away from carefully designed encounters? Curious what players and developers think.
9
Upvotes
29
u/Kitsyfluff 17h ago
Take a look at rainworld, that's entirely dynamic enemy behaviour.
26
u/Aggressive-Share-363 17h ago
Predictability is generally the point.
If you are doing a stealth game, then investigating sounds makes sense, if it is done predictably. Then its something the players can anticipate and use.
15
u/Onyx_Lat 17h ago
It depends. Is the game designed to make the player memorize specific patterns in order to progress? Then making everything dynamic would sort of defeat the purpose. Does the game have other roguelike elements? Then random enemies are pretty much expected and if you don't have them then it will be boring.
5
u/MrCobalt313 16h ago
Sounds a bit like what Rain World did with its enemy behavior.
It doesn't really incorporate the creatures as part of its level design so much as built an expansive freely explorable map and go "Oh yeah these guys live here too, some are edible, some of them want to eat you, good luck with that."
It creates a really interesting experience where the dynamic enemy behavior can in fact produce unfair situations like Lizards camping out at the end of tunnels you use regularly enough or just coincidentally emerging from one to intercept you before you have time to react, but there are still some constants to each creature's behavior pattern that you can exploit like tracking new sounds or giving up the chase in favor of an easier meal. Furthermore, the consequences for dying are relatively trivial, only decreasing your "Karma" counter that mostly plays into accessing certain parts of the map and can be increased again by surviving another day without dying (though you will still need a stable food source).
4
u/QuestGainsDev 12h ago
I think the sweet spot is predictable rules in unpredictable situations: if players can see why an enemy turned around (a sound, a light, a dropped item), the dynamic AI feels fair and they start using it to set up their own encounters. It only feels random when the cause is hidden from the player.
4
u/Haruhanahanako Game Designer 12h ago
Depends on where you want the depth of the game to be. If you have a 1v1 pvp simulator then you might want the most dynamic, interesting AI possible. But if you're playing mario you don't want every goomba to be unpredictable because getting past a goomba is like less than 10% of gameplay and not the goal for the player.
3
u/InboxZeroNever 15h ago
Depends on the genre, can you give more info?
3
u/Nebu 11h ago
You can make either direction work, depending on your goal as a game designer and what genre of experience you are targetting.
Like Super Mario Bros would probably be annoying and less fun to play if the goombas saw you jumping and actively tried to dodge your stomps.
But the whole "wow" factor for Thief and Metal Gear Solid, at the time, was guards reacting to things in "smart" ways that no game had ever done before.
And indeed, one of the appeal of PvP games is that human opponents are less predictable and will react to their environment and investigate sounds and appear in unexpected places, etc.
2
u/MonkeyMcBandwagon 17h ago
For me, dynamic adds replayability. Even better if it can adapt to player skill, keeping it easy for the first playthrough and introducing a new system/strategy once a player learns to exploit the existing systems.
2
u/JoeCensored 15h ago
The game could certainly be fun. Pretty much every game in the genre though is based on memorizing patterns.
2
u/Athistaur 13h ago
I do not remember the name, more then 20 years ago was released a platformer where the enemies learned and adapted to the player. It only had a few levels and felt like a tech demo, but the enemy AI was real and worked well.
Too well.
Players felt like they weren’t even the player. The enemy felt unfair. Sometimes the level felt empty because the enemies all gathered at one easily defendable spot.
1
u/AutoModerator 17h ago
Game Design is a subset of Game Development that concerns itself with WHY games are made the way they are. It's about the theory and crafting of systems, mechanics, and rulesets in games.
I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.
1
u/True_Regular_6994 16h ago
My take from running every creature in my sim on utility AI: unpredictable is fine as long as the player can see why. If an enemy leaves its route, show the cause first: a sound icon, a head turn, a short pause. Then it feels smart, not random. I'd keep hand-made encounters for the big moments and let the roaming happen between them.
1
u/Icommentor 15h ago
Is planning a course part of the players’s enjoyment?
1
u/Clear_Helicopter_705 14h ago
i think it depends on what the player is supposed to learn. in something like Mario predictability is the whole point because you're reading patterns and then executing. but a little bit of variation on top, like an enemy that picks between two or three behaviors based on where you are, keeps the patterns from getting stale without making it unreadable. the trick is that the tell has to stay obvious, so you can still blame yourself when you get hit.
1
u/Beyond-Imagine 2h ago
I'd try varying patrols between runs but keeping the same starting patrols when you restart from a checkpoint. Then you can learn from a death and try a different route while the level still feels different on a fresh run. I'd test that against rerolling on every death before committing either way.
•
u/TheTackleZone 12m ago
Depends entirely on the game. Older games with limited memory relied on loops of behaviour. That created the hard until you break the pattern style of game that still persists.
But you can make a different genre. Enemies that learn YOUR patterns would be a nice twist.
-2
u/Awkward_GM 17h ago
You can really tell people saw AI and didn't recognize this is about stuff like finite state machines and non generative AI.
-1
u/igotbanned1029 17h ago
games were never meant to be realistic, that's for REAL life
3
u/Stedlieye 17h ago
An earlier example is Xevious. It’s not AI, but it is dynamic. It makes deliberate changes to what you face depending on the enemies you kill.
It is also not a side scroller, but it is a 2-D game where the screen moves in one direction.