(SOLVED) How do I destroy objects?

Get help using Construct 2

Post » Sun Nov 15, 2015 4:30 pm

hi to all

im testing the" infinite jump demo" on construct 2, i would like to destroy the platforms when the player has jumped on it, how to do that in that demo?

thanks
Last edited by imothep85 on Sun Nov 15, 2015 8:07 pm, edited 1 time in total.
B
36
S
13
G
6
Posts: 1,648
Reputation: 8,823

Post » Sun Nov 15, 2015 5:08 pm

Since the demo is using the platform behaviour, I recommend that you put the event:
On Player Jumped and then pick the platform that the Player is overlapping at offset. Set the offset to be x=0 y=Player.Platform.JumpStrength and destroy that platform
Banned User
B
6
S
3
Posts: 105
Reputation: 1,170

Post » Sun Nov 15, 2015 5:23 pm

i did this but its not working :p :mrgreen:
Image
:oops: :mrgreen:
B
36
S
13
G
6
Posts: 1,648
Reputation: 8,823

Post » Sun Nov 15, 2015 5:47 pm

how much is the player.platform.jumpstrength?
is there a platform at that offset?
I told my dentist I had trouble with my teeth and asked her to fix it without looking in my mouth..
B
54
S
16
G
8
Posts: 6,160
Reputation: 19,775

Post » Sun Nov 15, 2015 6:10 pm

I was just thinking from the top of my head. I'm not currently on the Pc. Try setting the offset to or something
Banned User
B
6
S
3
Posts: 105
Reputation: 1,170

Post » Sun Nov 15, 2015 6:11 pm

the sprite "player" jump strenght is 800 you can see that if you open the vertical infinite jump example in construct 2
B
36
S
13
G
6
Posts: 1,648
Reputation: 8,823

Post » Sun Nov 15, 2015 6:26 pm

Do you mean destroy the platform the player has landed on?
August 2015 - I misplaced a lot of links - I will try to find backups and repost. If You find a post that interests please reply to post with @rampackwobble and I will get a nudge!

If you find my posts useful please consider donating something to a local charity or to the http://www.mndassociation.org/
B
64
S
33
G
47
Posts: 1,194
Reputation: 30,812

Post » Sun Nov 15, 2015 6:27 pm

yes :D
B
36
S
13
G
6
Posts: 1,648
Reputation: 8,823

Post » Sun Nov 15, 2015 6:30 pm

imothep85 wrote:the sprite "player" jump strenght is 800 you can see that if you open the vertical infinite jump example in construct 2


So, is there a platform 800 pixels beneath the player?
I told my dentist I had trouble with my teeth and asked her to fix it without looking in my mouth..
B
54
S
16
G
8
Posts: 6,160
Reputation: 19,775

Post » Sun Nov 15, 2015 6:51 pm

platforms are created randomly please open the template "Infinite Jump" in construct 2 its alot of events.
B
36
S
13
G
6
Posts: 1,648
Reputation: 8,823

Next

Return to How do I....?

Who is online

Users browsing this forum: Syazanie Amirin and 6 guests