how I do use loopindex and assign value of the vectors...

Get help using Construct 2

Post » Mon Mar 09, 2015 2:52 pm

how I do use loopindex and assign value of the vectors in ascending order on an object?

First I want to clarify that my programming skills are weak, and your new to construct 2.

I was watching videos and materials on array and loopindex and had an idea to apply in my project

It would be something like, every 1 second, feed a matrix with the X coordinate of the sprite controlled by the player, and another array that stores the coordenafas Y.

then using the loopindex, receive the amounts, and make a second sprite move the route taken by the player above. However I'm getting to do the second sprite move. it is stopped in the last position of the sprite played

The goal is to make a "shadow" repeat player's movements when the layout is restarted, to show how much he was fast at one stage or when he made a wrong move.

I figured that if it were possible, store the coordinates of the sprite player, could implement a system to turn back time.

I wonder someone who understands about array, and understood my idea if what I'm trying to do is possible in construct 2, or if the method I'm using is effective for this.

I thank any help.
B
17
S
4
Posts: 42
Reputation: 1,051

Post » Mon Mar 09, 2015 7:59 pm

There's an example of what you're talking about here:
replay-like-meatboy_p639426?#p639426
B
55
S
28
G
18
Posts: 1,520
Reputation: 25,315

Post » Tue Mar 10, 2015 4:54 am

Message: vubidugil is not yet permitted to post plain text URLS (300 rep required). 1 URLS removed. Why?
ramones wrote:There's an example of what you're talking about here:


thank you very much! that's what I was trying to do
B
17
S
4
Posts: 42
Reputation: 1,051


Return to How do I....?

Who is online

Users browsing this forum: Goomba, Zaksoid and 13 guests