Reset players position without it being notable?

Get help using Construct 2

Post » Fri Dec 23, 2011 10:33 pm

Does anyone have a tip/trick to reset the players position without them knowing or being notable,

My game is a never ending score based game, And instead of having the layout to be something like 5,000,000 px long(Exaggeration), I could have it like 50,000 And then reset its position to somewhere in the start of the layout without them knowing, Is this possible?

I Think i know half of the process, Well obviously art based, Having a animation incorporated into the loop so there appears hardly anything there except the Tiled BG, so there are not many obvious jumps.

The part that confuses me would be when it comes to re-positioning the player at the exact point they was on the screen, I would need to record there exact x position, exact y, and exact angle. Hmmm any ideas or am i just to much of a enthusiast?
B
6
S
1
G
1
Posts: 42
Reputation: 810

Post » Sat Dec 24, 2011 7:30 am

[QUOTE=DiggyDog] I would need to record there exact x position, exact y, and exact angle. Hmmm any ideas or am i just to much of a enthusiast? [/QUOTE]

You can query all these information from the Player-Sprite and either store it in a global or a local variable every tick?
B
42
S
19
G
12
Posts: 723
Reputation: 13,911

Post » Tue Dec 27, 2011 3:34 pm

@DiggyDog, There was a third party plugin developed recently(I only saw it today) which offers to save the exact location of a sprite.

Check it out, http://www.scirra.com/forum/topic47485.htmlsmitchell2011-12-27 15:34:29
B
29
S
12
G
7
Posts: 740
Reputation: 7,849

Post » Tue Dec 27, 2011 5:28 pm

Thanks @smitchell, Will check it out :)
B
6
S
1
G
1
Posts: 42
Reputation: 810


Return to How do I....?

Who is online

Users browsing this forum: 99Instances2Go, mallorcaredes, Yahoo [Bot] and 3 guests