Need help with activation regions and checkpoints

Game Editor comments and discussion.

Need help with activation regions and checkpoints

Postby RippeR7420 » Thu Nov 10, 2011 4:09 pm

I have a checkpoint set up in the middle of a level, to respawn my Player to it if he has collided with it.
But when I get further into the level, it will try to respawn my Player to the very beginning?
I have a feeling that this is because of activation regions. When My player moves further through the level,
It cancels out my checkpoint actor maybe?

If anyone understands what I just said, and can help me, I'd really appreciate it! :)
CURRENT PROJECTS:

-Olo: The Sword Shaman http://game-editor.com/forum/viewtopic.php?f=4&t=12919

-The Wrath of Blob: (On the back burner)

-StickMcGee - Blast to the Future http://game-editor.com/forum/viewtopic.php?f=4&t=13660
User avatar
RippeR7420
 
Posts: 391
Joined: Mon Apr 27, 2009 4:16 pm
Location: Salt Lake City, Utah.
Score: 23 Give a positive score

Re: Need help with activation regions and checkpoints

Postby master0500 » Thu Nov 10, 2011 9:10 pm

try this maybe?
player>destroyactor>script editor
Code: Select all
if (x>checkpoint.x)
{
          createActor(at checkpoint);
}
master0500
 
Posts: 409
Joined: Sun Jun 26, 2011 9:42 pm
Score: 27 Give a positive score

Re: Need help with activation regions and checkpoints

Postby RippeR7420 » Thu Nov 10, 2011 10:15 pm

well, my problem is that every time my player leaves the certain Activation Region that my checkpoint is set up in, it deletes it..
at least that's what I think my problem is haha, I don't really know. But it would make sense, Given how Activation Regions work..
CURRENT PROJECTS:

-Olo: The Sword Shaman http://game-editor.com/forum/viewtopic.php?f=4&t=12919

-The Wrath of Blob: (On the back burner)

-StickMcGee - Blast to the Future http://game-editor.com/forum/viewtopic.php?f=4&t=13660
User avatar
RippeR7420
 
Posts: 391
Joined: Mon Apr 27, 2009 4:16 pm
Location: Salt Lake City, Utah.
Score: 23 Give a positive score

Re: Need help with activation regions and checkpoints

Postby lcl » Thu Nov 10, 2011 10:28 pm

RippeR7420 wrote:well, my problem is that every time my player leaves the certain Activation Region that my checkpoint is set up in, it deletes it..
at least that's what I think my problem is haha, I don't really know. But it would make sense, Given how Activation Regions work..

That is the problem, you're right.
What you could do, is to create variables for the checkpoint x and y position and move player to them instead of checkpoint.x and checkpoint.y :)
User avatar
lcl
 
Posts: 2339
Joined: Thu Mar 25, 2010 5:55 pm
Location: Finland
Score: 276 Give a positive score

Re: Need help with activation regions and checkpoints

Postby RippeR7420 » Fri Nov 11, 2011 3:20 pm

How do you think I would go about doing that? :)
thanks again for the help!
CURRENT PROJECTS:

-Olo: The Sword Shaman http://game-editor.com/forum/viewtopic.php?f=4&t=12919

-The Wrath of Blob: (On the back burner)

-StickMcGee - Blast to the Future http://game-editor.com/forum/viewtopic.php?f=4&t=13660
User avatar
RippeR7420
 
Posts: 391
Joined: Mon Apr 27, 2009 4:16 pm
Location: Salt Lake City, Utah.
Score: 23 Give a positive score


Return to GE - General

Who is online

Users browsing this forum: No registered users and 1 guest