Jump to content

[TOPIC: topicViewTemplate]
[GLOBAL: userSmallPhoto]
Photo

Exporting Objects State from Corona
Started by snazari Jan 30 2020 04:55 PM

1 reply to this topic
[TOPIC CONTROLS]
[/TOPIC CONTROLS]
[modOptionsDropdown]
[/modOptionsDropdown]
[reputationFilter]
[TOPIC: post.html]
#1

snazari

[GLOBAL: userInfoPane.html]
snazari
  • Observer

  • 1 posts
  • Corona SDK

I am planning to use Corona for creating a game with physics. I need to export the objects' parameters such as position and velocity at every time step. Is this possible?

 

If yes, can you please instruct me to the right documentation?
 


[TOPIC: post.html]
#2

roaminggamer

[GLOBAL: userInfoPane.html]
roaminggamer
  • Corona Geek

  • 7,641 posts
  • Corona SDK

Asked and answered way back in 2015 ...
 
 
https://github.com/roaminggamer

 

 

I don't export the saved data in this example, but that is as easy as saving the table the data is stored in and re-loading it later.

 

https://roaminggamer.github.io/RGDocs/pages/SSK2/extensions/#saving-loading-tables


Edited by roaminggamer, 31 January 2020 - 08:33 PM.

  • sporkfin likes this


[topic_controls]
[/topic_controls]