pettygrind เขียน:Hello again, Im trying to set up my game so that when an enemy gets within a certain distance of the player they start to chase the player. Im trying to use Math.distance but keeps telling me undefined is not a function. Right now I just want to most basic form of this to work so I tried (this is what function runs from the forEach in the update.)
pettygrind เขียน:Supposing your friend told you that he was stuck in traffic along the way and that he traveled at 50 mph whenever he could move. Therefore, although practically he never really traveled at 25 mph, you can see how the standstills due to traffic caused his average to reduce. Now, if you think about it, from the information given, you can actually tell how long he was driving and how long he was stuck due to traffic (assuming; what is false but what they never worry about in these problems; that he was either traveling at 50 mph or 0 mph). If he was traveling constantly at 50 mph, he should have reached in 2 hours. However, since he took 4 hours, he must have spent the other 2 hours stuck in traffic!
ย้อนกลับไปยัง การพัฒนามาตรฐานวิชาชีพ 11 สาขาวิชาชีพ
่กำลังดูบอร์ดนี้: ไม่มีสมาชิกใหม่ และ บุคคลทั่วไป 1 ท่าน