Recommended Posts

Hi guys,
I''m currently working on a 2D Tile Based RPG. So far, everything is great. But now I''ve come to a problem of moving different objects at any time in a very easy way. But moving objects is not the only thing i want to do . Things like, drawing text for 5 seconds or doing other things for a certain time.
Those activites all need more than 1 frame. The silliest variant would be like that:

Share this post

Link to post

Share on other sites

That''s pretty much right. Each frame call something like object.update() and that function will move or update the object with a counter based on a flag or some other variables of your choice. Another call, object.activate() or something, will start the counter going and/or set flags for the move procedure to use.