gate blueprint logic in c++
I have a problem on how to implement a gate in c++. Is it normal to put gate logic inside the tick function of an actor?
I want to (spawn and) move a building as long as the player does not pressed the left click again the building should be moved to the location of the mouse. I was thinking of something like this:
Is there a better way of doing it or lets say a relativly official way?
asked Mar 13 '17 at 10:37 PM in C++ Programming
I think the way you described is fine. I would simply try it out and see if it works, and then later you can improve it if you see performance becoming an issue.
It's very easy to get caught in the trap of "Let me plan this feature/system down to the most minute detail before I write any code", when often times the things you think will be issues - aren't, and the things you didn't see coming a mile away are. :)
answered Mar 14 '17 at 02:06 PM
Follow this question
Once you sign in you will be able to subscribe for any updates here