Tuesday, July 14, 2015

Mentor Meeting

I met with Derric Clark yesterday for my mentor meeting. We discussed one of the main issues I've been having with the game. I cannot get the waypoint function to work. The character should walk to an object before picking it up. I can get the character to walk after the item has already disappeared, but never before. What we believe is happening is the waypoint function begins, but is immediately stopped by the pick up function. We went over a few different options.

I could add a new feature that is just made for walking so when the player "interacts" with an object they walk to it, but if they "pick up" an object they'll actually grab it. This might work because it would allow the interact function to run completely before the pick up option starts.

I could also add a function that tests to see if the player is close enough to the object. If they are, they will pick it up, if they are not they will then walk to it. I need to look more into the engine to see if there is code already written to determine how far a character is from a specific point. If there isn't this option may be a bit difficult.

Another option would be to create a loop. The loop would check to see if the player is close to the object, if they are they would pick it up, if they weren't then nothing would happen and they would need to walk themselves over. This is similar to the second option and requires me to look further into the engine.

This was pretty useful because I honestly had no idea where to start on fixing this. I'll be looking into all these options soon. Another game update is coming in the next few days!

No comments:

Post a Comment