playMaker

Author Topic: <Problem> Duplicate Object once  (Read 1074 times)

InbalTal

  • Junior Playmaker
  • **
  • Posts: 55
<Problem> Duplicate Object once
« on: February 20, 2020, 02:48:07 PM »
Hi

Is there an Option to Duplicate an object and then continue to work with the new one
Description:
I have a cube with Easy Touch Action.
I want to duplicate the cube by Mouse Down ( I use Create Object for the duplicate action).
After the function is Finish, I want to continue working (drag / Rotate)with  the new object

Is it possible?

Thank's
Inbal

djaydino

  • Administrator
  • Hero Member
  • *****
  • Posts: 7616
    • jinxtergames
Re: <Problem> Duplicate Object once
« Reply #1 on: February 20, 2020, 05:18:00 PM »
Hi.
This should be possible but it depends on your setup,

when you create the object you can store it in a variable then after create you need to set the target to that object (or the way you are doing it with the previous object)

btw if you need to create many objects you might want to consider pooling instead

InbalTal

  • Junior Playmaker
  • **
  • Posts: 55
Re: <Problem> Duplicate Object once
« Reply #2 on: February 22, 2020, 02:20:28 AM »
Hi djaydino,
thank's for your Advice.
I'm getting to the final Solution but have a problem in the way
attach a link to a video explanation file
please advice

djaydino

  • Administrator
  • Hero Member
  • *****
  • Posts: 7616
    • jinxtergames
Re: <Problem> Duplicate Object once
« Reply #3 on: February 23, 2020, 09:23:24 AM »
Hi.
I can see that on the state 'get gesture data' get position does not have a variable, so its not stored anywhere :)

also on create, the position is set to 0,0,0 and not to a variable so it will alway create on 0,0,0 :)