Closed melonpan0130 closed 5 years ago
I have to create a collision method before this...
I made trap appear at random by using float array.
float m_TrapTimerGap[5] = { 800.f, 1200.f,1600.f, 2000.f, 2400.f }; // this is global member..
m_TrapGap = m_TrapTimerGap[rand() % 5]; // float m_TrapGap;
But the random value is over than 350