I'm working on a game to the iphone with opengl es, and every time i have some other problem caused by the situation- that i can't run just one-time code in the game loop.
what should i do
?
EDIT:
I'll try to explain my problem here more deeply -
Example:
//
-init...
-game loop {
delta,
update,
render,
/* in the game loop ,as example, i want to run some method just one time, when, let's say, has a collision of explosion, Run the explosion-animation just once. */
}
what should i do
EDIT:
I'll try to explain my problem here more deeply -
Example:
//
-init...
-game loop {
delta,
update,
render,
/* in the game loop ,as example, i want to run some method just one time, when, let's say, has a collision of explosion, Run the explosion-animation just once. */
}