+ 2
Game event
How I can do events in a game? For example: player go to door and when he near door...(for example it explode) on C++
5 Answers
+ 2
//not for multithreading
enum class event { explosion, trigger_hit, null }
event cur_event{null};
+ 2
That's specific to your engine, game...
Can't help you there.
+ 1
Thanks
+ 1
But I donât know how do âWHEN PLAYER NEAR DOORâ?
+ 1
Ok