playMaker
Home
Store
Showcase
Tutorials
Forums
Manual
Wiki
About Us
Playmaker Forum
Welcome,
Guest
. Please
login
or
register
.
Did you miss your
activation email
?
1 Hour
1 Day
1 Week
1 Month
Forever
Login with username, password and session length
News:
Join our
Discord Channel
Home
Help
Search
Login
Register
Playmaker Forum
»
PlayMaker Help & Tips
»
PlayMaker Help
»
Loop objects
« previous
next »
Print
Pages: [
1
]
Go Down
Author
Topic: Loop objects (Read 1902 times)
Rabagast
Hero Member
Posts: 683
Loop objects
«
on:
October 14, 2014, 05:37:08 PM »
Hi!
I'm have some prefabs of the ground which I want to create and place them in the scene. I use iTween Move To on the ground, and when the iTween Move To is finished, the ground will be destroyed and a new ground will be created, but after the previous one, without any space between the grounds. And here is my problem. I try to figure out what is the best way to to this. Every time a new ground is created, there will be a little space. I don't get it 100 % exact.
What is the best way to do this?
Thanks!
Logged
Check out our homepage.
http://www.walsberg.no
Or my personal game blog for news about my games.
http://retro-tetro.walsberg.no
jeanfabre
Administrator
Hero Member
Posts: 15500
Official Playmaker Support
Re: Loop objects
«
Reply #1 on:
November 27, 2014, 02:02:15 AM »
Hi,
When the tweening is finished, move it manually to the final known position. It happens in some code ( it's a bug, yes) that te animation is ended just the frame before the target value.
Bye,
Jean
Logged
Rabagast
Hero Member
Posts: 683
Re: Loop objects
«
Reply #2 on:
December 09, 2014, 06:57:26 AM »
Hi, Jean!
So you mean that I should set new position, instead of destroy it and create a new one?
Logged
Check out our homepage.
http://www.walsberg.no
Or my personal game blog for news about my games.
http://retro-tetro.walsberg.no
jeanfabre
Administrator
Hero Member
Posts: 15500
Official Playmaker Support
Re: Loop objects
«
Reply #3 on:
January 19, 2015, 03:01:34 AM »
Hi,
yes, simply force the position to the value you know is right. keep the object you have used during animation, nothing wrong to do this, i'ts actually better it saves perf ( destroying and creating is costly)
Bye,
Jean
Logged
Print
Pages: [
1
]
Go Up
« previous
next »
Playmaker Forum
»
PlayMaker Help & Tips
»
PlayMaker Help
»
Loop objects