dMZX Forums: Wolfenstein 3-D-Style Patrolling Units - dMZX Forums

Jump to content

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

Wolfenstein 3-D-Style Patrolling Units My way works, but…

#1 User is offline   Joseph Collins 

  • Newbie
  • Pip
  • Group: Members
  • Posts: 31
  • Joined: 10-October 02
  • Gender:Not Telling
  • Location:United States

Posted 17 February 2024 - 02:28 PM

Alright, so. I was originally trying to create a 'bot that changes directions while walking when certain types of CustomFloor tiles are beneath it. (Think Wolfenstein 3-D / Rise of the Triad patrolling guards.) Apparently, MegaZeux 2.5x doesn't do that, so I switched over to having it switch directions when it detect certain types of CustomFloor next to itself.

Spoiler

This mostly works, though it occasionally fails to detect a tile. Moreover… good lord, the code is messy, messy, messy. Is there a way to optimize this mess within the confines of old MegaZeux versions? Or, am I stuck with twelve "if c?? CustomFloor p?? to DIRECTION "Label" messages for this?


02/18 Edit:
I figured it out.

This post has been edited by Joseph Collins: 18 February 2024 - 10:41 AM

I'm not that hard to find… if you know where to look.
-=( https://jolikmc.tumblr.com )=-
0

#2 User is offline   asiekierka 

  • ??
  • PipPipPipPipPip
  • Group: Members
  • Posts: 1,268
  • Joined: 06-April 06
  • Gender:Male
  • Location:Poland

Posted 17 February 2024 - 02:55 PM

At the risk of stirring up a hornet's nest, given that your game is seemingly outgrowing the confines of MegaZeux 2.51(something), is there a specific reason why you're sticking to that version specifically?
Huh.
0

#3 User is offline   Joseph Collins 

  • Newbie
  • Pip
  • Group: Members
  • Posts: 31
  • Joined: 10-October 02
  • Gender:Not Telling
  • Location:United States

Posted 17 February 2024 - 04:53 PM

View Postasiekierka, on 17 February 2024 - 09:55 AM, said:

At the risk of stirring up a hornet's nest, given that your game is seemingly outgrowing the confines of MegaZeux 2.51(something), is there a specific reason why you're sticking to that version specifically?

What, did somebody warn you about me? (;
Nah, you've probably been scoping out all my recent bug reports, I'll bet.
Not to derail my own topic, Professor, but I can give you an actual practical reason. Universal compatibility. But for me? It ultimately boils down to… 2.51 feels "cozy". Like an old friend who welcomes me back with open arms despite me neglecting them for literal decades. (,:

Further Thoughts on "Why 2.51?"
Spoiler


02/18 Edit:
Yooooo, I figured it out. And I feel both smarter and dumber for it!

Patrolling Robot Code
Spoiler

The Code In Action

Easy, no~?
(Of course, mine idle for a bit before turning, and they have an "aggro radius", but this is the basic code.)

This post has been edited by Joseph Collins: 18 February 2024 - 11:58 AM

I'm not that hard to find… if you know where to look.
-=( https://jolikmc.tumblr.com )=-
0

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users