Do created objects have separate behaviors?

Get help using Construct 2

Post » Sun Apr 24, 2016 5:35 am

I have two platforms that will generate offscreen. The platforms will move to the left to give the illusion that the character is moving right.

My problem: when the new platforms generate, they don't follow the same rules as the platforms that start on screen. The ones that start on screen are platform one and platform two. The ones generated off screen are these same platforms.

On jump, the platforms move at a set speed. On collision, all platforms stop moving. This works for the first few jumps but as the new objects are generated, they don't stop moving on collision. And unfortunately, it's only *some* of the time they will stop moving. Sometimes they move, sometimes they don't. What gives?

The created objects are either platform one or platform two.
Last edited by LanieCoder on Sun Apr 24, 2016 6:32 am, edited 3 times in total.
B
13
S
4
G
1
Posts: 54
Reputation: 1,440

Post » Sun Apr 24, 2016 6:24 am

I was having an issue of the player double tapping the keys when only one key press is allowed per jump. So, I added more conditions: the cat can't be moving, platform one and two can not be moving either. So in order for the cat to jump, nothing in the game should be moving. These platforms are destroyed once they are off the canvas.

With that said, the moving platforms that don't stop when the character collides with a platform will eventually move off screen. They should be destroyed after this; however, I can't move the character so it must still be moving. It seems like the behaviors for the original sprites don't go to created duplicates..

P.S. I originally had it so when that it had to be true that the character was NOT moving for the any action to happen with the key. For some reason, that didn't work until I added the conditions for the platforms, too.
B
13
S
4
G
1
Posts: 54
Reputation: 1,440

Post » Sun Apr 24, 2016 6:44 am

B
13
S
4
G
1
Posts: 54
Reputation: 1,440

Post » Mon Apr 25, 2016 7:33 pm

@LanieCoder

https://
drive.google.com/open?id=0B1SSuCVV8v74cU5Ici1rNEp1YkU

Just to let you know that i had fun playing with your concept.
B
33
S
18
G
28
Posts: 2,493
Reputation: 20,950

Post » Tue Apr 26, 2016 8:09 am

Thank you for the help, 99Instances2Go. And thank you for the compliment! means a lot for my first game. :-) Can't wait until I get more stuff into it.
B
13
S
4
G
1
Posts: 54
Reputation: 1,440

Post » Tue Apr 26, 2016 4:19 pm

@99Instances2Go, i just had a peak at the edits! Thank you!
B
13
S
4
G
1
Posts: 54
Reputation: 1,440

Post » Tue Apr 26, 2016 7:51 pm

ysvw

I wanted to give you a simple example, then i got stuck on the rules that dictate when the player dies.
Only those rules make it a bit complicated. I choosed for: wrong key = natural looking dead.
B
33
S
18
G
28
Posts: 2,493
Reputation: 20,950

Post » Wed Apr 27, 2016 5:42 am

lol @99instances2go, I looked at the event sheet and your coding is much more intricate than mine. I will have to dial back some. ALso,, since I posted this, I've changed a lot of things but thank you!! i'm keeping it for future reference. :-)
B
13
S
4
G
1
Posts: 54
Reputation: 1,440


Return to How do I....?

Who is online

Users browsing this forum: Exabot [Bot], Google [Bot], Kin, newt, ratboy3, tinhofiel and 41 guests