Page 1 of 1

Speed movement problem when resizing

PostPosted: Fri Nov 09, 2012 11:52 pm
by skyhunter93
I'm using this method to move an object
System EveryTick:
Set X to Object.X +2

The movement looks fluid, but the problem is that, when I resize the window(I'm using letterbox scale mode), the object moves faster.
Is there a way to avoid this? I noticed that using bullet behaviour runs equally faster when resized, but is there a way to implement this without using the bullet behavior?

Re: Speed movement problem when resizing

PostPosted: Sat Nov 10, 2012 1:21 am
by keepee
search manual for delta time

Re: Speed movement problem when resizing

PostPosted: Sat Nov 10, 2012 5:18 pm
by skyhunter93
Wow that's fantastic! :D
I just bought the standard version of Construct 2 to be able to publish to IOS/Android and use families.

But using dt i've found a new problem:
https://dl.dropbox.com/u/76175551/Problem.capx

The objects appear at minimal diferent distances and I can't use Wrap behaviour because it interferes with other things i'm planning to do.
What do you recommend to avoid those gaps

Re: Speed movement problem when resizing

PostPosted: Sat Nov 10, 2012 6:02 pm
by ramones
Instead of setting x to 960, set it to Ground.X + Ground.Width * 6.

Re: Speed movement problem when resizing

PostPosted: Sat Nov 10, 2012 7:20 pm
by skyhunter93
Thanks! it resolved the problem :)