LogFAQs > #953098062

LurkerFAQs, Active DB, DB1, DB2, DB3, DB4, DB5, DB6, DB7, Database 8 ( 02.18.2021-09-28-2021 ), DB9, DB10, DB11, DB12, Clear
Topic List
Page List: 1
TopicHypothetically, let's say I'm making a game in game maker
AlisLandale
04/22/21 2:17:48 AM
#1:


Now let's say, hypothetically, I am total ass poop dookie at programming

And now that we've established that I'm making a game in game maker and am ass poop dookie at programming, let's say, hypothetically, that I want an enemy to check the relative position of the player, so that it can swing a weapon in the player's general direction. The enemy, of course, can only face in the four cardinal directions.

You see, hypothetically speaking, the problem my current, simple code would have is that it prioritizes one axis, so that the enemy will only face up and down, or left and right, but never all four.

What might be some ways to address this?

Because hypothetically, I'm a dumbass.

---
... Copied to Clipboard!
Topic List
Page List: 1