+ 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++

21st Apr 2018, 2:06 PM
Boom
Boom - avatar
5 Respuestas
+ 2
//not for multithreading enum class event { explosion, trigger_hit, null } event cur_event{null};
21st Apr 2018, 2:25 PM
Timon Paßlick
+ 2
That's specific to your engine, game... Can't help you there.
21st Apr 2018, 4:00 PM
Timon Paßlick
+ 1
Thanks
21st Apr 2018, 2:26 PM
Boom
Boom - avatar
+ 1
But I don’t know how do “WHEN PLAYER NEAR DOOR”?
21st Apr 2018, 3:58 PM
Boom
Boom - avatar
+ 1
Ok
21st Apr 2018, 5:32 PM
Boom
Boom - avatar