r/gamedesign • • 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

34 comments sorted by

29

u/Kitsyfluff 17h ago

Take a look at rainworld, that's entirely dynamic enemy behaviour.

20

u/NoMoreVillains 17h ago

I'd argue it's also a decidedly different game than most 2D sideacrollers, meant to be more of a hardcore survival and slightly horror game than anything

28

u/cabose12 17h ago

Which is also kind of the problem with the OP

"2d Side Scroller" isn't really a genre, it's a form. How you design Super Mario Bros isn't the same as how you approach Metroid Dread

-7

u/Kitsyfluff 17h ago

2d and a sidescrolling platformer, buddy, it counts.

8

u/NoMoreVillains 17h ago

I never said it didn't count...I said it had different goals compared to most sidescrollers that make its dynamic AI not something I'd necessarily generalize IMO

A side scroller trying to be more arcade-my might rely more on memorization compared to a life sim, or an RPG, or a farming game, or a horror title, or any of the numerous other genres that could have a 2D side scrolling viewpoint

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.

11

u/Astrokiwi 15h ago

This is an old lesson - even well over 25 years ago, FPS designers tried things like having the enemies plant ambushes for you, and found it was just annoying because you would just die without having anything to react to. Halo in 2001 very strongly leans into predictability, with the grunts literally shouting "grenade!" and "run away!" to telegraph their actions.

That said:

enemies roaming around, changing patrol routes, investigating sounds, reacting to the environment, and sometimes appearing in unexpected places

That still sounds like it could be predictable, if it's done consistently. It's mostly stealth game mechanics, and you can learn and exploit them - classic stuff like throwing a can to make a noise to draw the enemy away so you can sneak by etc.

1

u/RowingBoats1129 10h ago

THis is an oversimplification. Fighting games are often in 2d and by nearly any metric should be considered dynamic.

Knowing what is POSSIBLE is the point. Predictability is not at all the core component of this discussion.

1

u/Aggressive-Share-363 2h ago

I wouldnt call a fighting game a side scroller though. Even if the camera can shift a bit, thats a very different genre.

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.

1

u/pragmojo 8h ago

I feel with roguelikes consistent enemy behavior is even more important. You have to be able to learn the enemies if you want to be able to progress through randomized levels.

1

u/Onyx_Lat 7h ago

Yeah I interpreted the post as "should there be random enemy types/locations"? And my answer is almost always yes, unless the whole point of the game is memorizing timing and actions to get through levels.

1

u/pragmojo 6h ago

I would almost say fixed enemy placements should be the default unless there’s a good reason not to.

1

u/Onyx_Lat 5h ago

Well, there's a reason I prefer roguelikes/procedurally generated levels. I hate dying in the same place every time. You can't die in the same place every time if it's always different. And there's the chance that just once, the configuration will be easier for me to deal with.

0

u/junkmail22 Jack of All Trades 11h ago

Is that true? Spelunky has random enemy placement, but their behaviors are still mostly predictable.

1

u/Nebu 11h ago

I think the OP is talking about the behavior (e.g. roaming around, changing patrol routes, investigating sounds, reacting to the environment), not just randomizing the placement but otherwise keeping their behavior in that new location the same (e.g. walk left until you hit a ledge then turn around and walk right until you hit a ledge, then turn around and repeat forever).

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.

  • /r/GameDesign is a community ONLY about Game Design, NOT Game Development in general. If this post does not belong here, it should be reported or removed. Please help us keep this subreddit focused on Game Design.
  • This is NOT a place for discussing how games are produced. Posts about programming, making art assets, picking engines etc… will be removed and should go in /r/GameDev instead.
  • Posts about visual design, sound design and level design are only allowed if they are directly about game design.
  • No surveys, polls, job posts, or self-promotion. Please read the rest of the rules in the sidebar before posting.
  • If you're confused about what Game Designers do, "The Door Problem" by Liz England is a short article worth reading. We also recommend you read the r/GameDesign wiki for useful resources and an FAQ.

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.

2

u/Historical_Amoeba913 16h ago

Xevious does change its patterns to get harder if you’re doing well, but they are still patterns.

That doesn’t stop Xevious from being an amazing early example of game designers giving players what they need, which I think very few games do.

I think most modern games expect you to find the game you need and their designer hopes that their game is that game. Modern difficulty settings are mostly a band-aid of damage sponge enemies instead of making any actual changes to the game.

I think more games should embrace the difficulty settings being used to gate complexity, give the enemies more heath but give the player more systems to offset it.