Jump to content

[TOPIC: topicViewTemplate]
[GLOBAL: userSmallPhoto]
Photo

Perhaps a dumb question, but is their a function to create a COPY of an existing object?
Started by troylyndon Aug 10 2018 06:44 PM

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

troylyndon

[GLOBAL: userInfoPane.html]
troylyndon
  • Contributor

  • 517 posts
  • Corona SDK

Perhaps a dumb question, but is their a function to create a COPY of an existing object?

 

newObject=display.copy(sourceObject) ???



[TOPIC: post.html]
#2

roaminggamer

[GLOBAL: userInfoPane.html]
roaminggamer
  • Corona Geek

  • 7,125 posts
  • Corona SDK

It is not  dumb question.

 

No there is not a way to do that automatically.  You have to have your own system for that.




[topic_controls]
[/topic_controls]