(Closed) Respawn character on moving Checkpoint

Get help using Construct 2

Post » Sat Apr 19, 2014 2:22 am

Hi there,

I need a checkpoint system in my game, but there's a problem, the "checkpoint" is in movement. Because of this, the position is not registered correctly and the character respawn isn't acccurate. I've tried the "Checkpoint" capx from the forum.

http://dl.dropbox.com/u/36472942/construct/forumhelp/CheckpointSystem.capx

but it only works for static position which is not my case.

In my game, I'm using the "bullet" behavior to move the objects of the levels, but the character is restricted to horizontal movement.

QUESTION
How can I register the last checkpoint position and place the character at this position ?

CAPX DOWNLOAD
//Removed//

CONTROL
* Move character horizontally with mouse
* Touch word to destroy it
Last edited by DirtyArts on Mon Apr 21, 2014 1:44 am, edited 2 times in total.
Create HTML5 games
B
10
S
1
Posts: 29
Reputation: 1,348

Post » Sat Apr 19, 2014 9:23 am

QUESTION
How can I register the last checkpoint position and place the character at this position ?

Ans - You don't! actually you are trying get xy of a object with bullet behaviour and if you respawn you will be spawn on out side layout or some where random as you said.

Try this for each text sprite passed collect data and store it in a array and then when respawn collect those data and set the position.

this tutorial is perfect for you https://www.scirra.com/tutorials/321/ho ... game-slots

Also this can help you https://www.scirra.com/tutorials/526/ho ... -savegames

Sorry for my bad english i am working on it!
Every Game is a Good Game it's just few people like and few does not! Keep coding people some day you will be a "NOTCH".
B
21
S
6
G
3
Posts: 85
Reputation: 4,607

Post » Mon Apr 21, 2014 1:44 am

Thx for your reply. I've found a solution in which I Replace manually the level at a spectific position if a checkpoint has been activated. It's not elegant from a coding point of view, but it works for what i need.

If you are interested and have an iPhone, I invite you to download SOUL for free on the appStore.
https://itunes.apple.com/ca/app/soul/id ... ?l=fr&mt=8

Txh againg for your help.
Create HTML5 games
B
10
S
1
Posts: 29
Reputation: 1,348

Post » Mon Apr 21, 2014 2:18 pm

NP good for you! i have already checked on arcade and will download for iOS! though i suggest put one more screen shot stating game controllers and object.

Also i believe there was you tube confession kinda video on which you have made this game! Beautiful and marvelous! Keep coding bro!
Every Game is a Good Game it's just few people like and few does not! Keep coding people some day you will be a "NOTCH".
B
21
S
6
G
3
Posts: 85
Reputation: 4,607


Return to How do I....?

Who is online

Users browsing this forum: No registered users and 3 guests