How do I make a game loop in corona that can set the FPS to 30 or 40 etc.
Do I use this event or is there a better way for a game?
Runtime:addEventListener(“enterFrame”, gameLoop) [import]uid: 138547 topic_id: 25045 reply_id: 325045[/import]
How do I make a game loop in corona that can set the FPS to 30 or 40 etc.
Do I use this event or is there a better way for a game?
Runtime:addEventListener(“enterFrame”, gameLoop) [import]uid: 138547 topic_id: 25045 reply_id: 325045[/import]
Hi there,
You haven’t provided much information but hopefully this info helps.
The FPS is defined in the config.lua file and defaults to 30 FPS. This cannot be changed while running. The enterFrame event will call a listener at the frame rate (30 or 60 FPS). That listener would be the game loop.
Good luck with your project!
Peach
[import]uid: 52491 topic_id: 25045 reply_id: 101783[/import]