Need some help with Arrays

Discussion and feedback on Construct 2

Post » Mon May 06, 2013 11:43 am

Hi guys so I've been playing around with arrays and was able to make a rewind button that rewinds the players moves. My issue is I can't effect the time when rewinding. I've been trying for the past few hours and just can't do it can anyone help? Thanks.

https://dl.dropboxusercontent.com/u/149029149/arrays.capx     
B
11
S
3
G
3
Posts: 19
Reputation: 2,942

Post » Mon May 06, 2013 12:24 pm

So you are looking for a braid mechanic ?

Then , you'll need more than only saving the player position , in fact , you must save the position for each object ingame

I suggest putting all the objects in a family and adding them to a container with the array , so there'll be an instance of array for each object of the family ...

Also , the best way to learn is to try ourselves before , in a lot of cases , there's a small bug that we just can't see , so don't go willy-nilly on the How Do I section as a lot of people do !


Just a tipWhiteclaws2013-05-06 12:28:38
B
35
S
16
G
16
Posts: 2,222
Reputation: 16,589

Post » Mon May 06, 2013 3:37 pm

@viiVoices

Here is one way to manipulate the speed of a player's recording:

Demo
Capx

Every tick gets recorded. Manipulating the speed comes down to skipping ticks to go faster, or replaying the same ticks to go slower.

I hope this helps.zatyka2013-05-06 17:04:53
B
44
S
13
G
7
Posts: 338
Reputation: 10,379

Post » Mon May 06, 2013 8:12 pm

My bad , didn't understand the question ^^
B
35
S
16
G
16
Posts: 2,222
Reputation: 16,589

Post » Mon May 06, 2013 10:25 pm

Thank's guys for the help.
@Zatyka Thank you, I think I understand i'm still a little confused though but I'm playing around with it right now hoping I'll understand it. Thanks a lot.

Edit:@Zaytka Thanks for the help you're awesome I got it to work.



.capx     ViiVoices2013-05-06 23:10:29
B
11
S
3
G
3
Posts: 19
Reputation: 2,942


Return to Construct 2 General

Who is online

Users browsing this forum: No registered users and 16 guests