Dear reader,
I am in the proces of becoming familiar with unreal engine 4. I’m recreating the snake game and boy it is a lot of fun working in UE4. I actually have all the core concepts figured out, being moving around and eating/spawning food, game over if you hit the wall or yourself and that is pretty much it. Something I wanted to fix though was that new food sometimes spawn at the position of the snake. Which from a technical standpoint doesn’t really matter I guess, but I want to make this as polished as I can get it for the sake of practising.
Anyway, I have a bunch of stuff going on that will check the proposed position of the new food with the position of the snake head and tail to make sure there is no overlap. I created some print blocks to see if things where actually firing the way and order I was expecting. They seemed to do, there was recognition if the food was on the head or tail. However the food still spawned at that location and overlap was made. I placed a bunch of breakpoints to see what was going on and then I found this: http://imgur.com/xEZDHTc
What is going on here? They seem to fire both? Which is exactly the opposite thing that I expected a branch to do.
Thanks for your help