Working with Timedelta

For questions about using Classic.

Post » Thu Jul 15, 2010 12:16 am

Hey guys, just wondering if anyone has a good method for using timedelta to move a sprite a specific number of pixels? I have created some spikes that move back and forth, accurately, but it is based solely on timing. Which breaks if i try to adjust the time it takes for the spikes to emerge/retract etc

I would really like some sort of precision, having a sprite move from 0px to 32px for example.

To calm those who have helped me with timedelta in the past, I am very comfortable with timedelta as a whole, just looking for a little precision. :P
B
9
S
2
G
4
Posts: 346
Reputation: 2,726

Post » Thu Jul 15, 2010 2:33 pm

Try clamping the spikes position to 32 pixels greater than its resting position. Try using an increasing PV to control spike in/outness.

Made you this:
99.91
http://dl.dropbox.com/u/1010927/Caps/spikeTDclamp.cap
B
25
S
3
G
6
Posts: 1,197
Reputation: 5,620

Post » Fri Jul 16, 2010 8:31 am

Cheers Davioware, I have not come across this clamp option before. I can;t wait to add this into my game :) Just need to get through 3 more days at work.
B
9
S
2
G
4
Posts: 346
Reputation: 2,726


Return to Help & Support using Construct Classic

Who is online

Users browsing this forum: No registered users and 8 guests