Destroy an object at a point

Get help using Construct 2

Post » Sat Oct 15, 2011 6:34 am

No prob, sorry I couldn't help with everything. Tell Alex I said keep up the good work.
B
20
S
9
G
6
Posts: 607
Reputation: 6,112

Post » Sat Oct 15, 2011 7:11 am

Hah. Will do. Yeah, I'm still having a problem with multiple enemies. It seems like the first one works great, the second one can only be jumped on, and the third one can't. Not really sure why it's doing that. I mean, the bricks work fine.

(EDIT)
OHHO! The problem was the ground tiles having physics! Removed that, and it works great! Not sure why/how that was an issue though..Crayron2011-10-15 07:13:36
B
16
S
3
G
2
Posts: 57
Reputation: 2,078

Post » Sat Oct 15, 2011 7:15 am

O.o

I would never have thought to check that. Great catch, though!
B
20
S
9
G
6
Posts: 607
Reputation: 6,112

Post » Sat Oct 15, 2011 7:19 am

Ha thanks! Know a quick way to make it so that the DeadAlex sprite, can pass through the terrain/enemies? Looks silly when he dies, and lands ontop of one XD

p.s. Took forever for me to figure out the collision so that he dies when hit by their body, but not by their head! :PCrayron2011-10-15 07:20:21
B
16
S
3
G
2
Posts: 57
Reputation: 2,078

Post » Sat Oct 15, 2011 7:22 am

Construct Classic had an expression for platform objects that lets you set the "collision mode", which you could set to "none" and have it pass through objects. That hasn't been implemented in C2 yet, and as far as I know there's no other way to do it...

However! My workaround is to have it as a separate sprite that ISN'T a platform object. When Alex dies, make him invisible and then set the new sprite with his dying animation to his position, then make it fall the same way he would've.
B
20
S
9
G
6
Posts: 607
Reputation: 6,112

Post » Sat Oct 15, 2011 7:25 am

Yeah! That's totally what I did. But I kept it a Platform so that I could use the move vector Y commands. Otherwise I can't seem to get it to look right.Crayron2011-10-15 07:29:52
B
16
S
3
G
2
Posts: 57
Reputation: 2,078

Post » Sat Oct 15, 2011 7:34 am

Assuming all you're doing with the death sprite is falling straight down, you can use the Move (Distance) at (Angle) action to do the same thing just as well. Make sure to set the angle to 90 for down and you're good to go!
B
20
S
9
G
6
Posts: 607
Reputation: 6,112

Post » Sat Oct 15, 2011 7:45 am

Alright, sweet! What I did, is I gave it the bullet property, because just moving to the angle wasn't working very nicely. I just have to do a few more tweaks, and I should have it! I also changed the screen to be the size of a gameboy, it looks pretty neat. XD
B
16
S
3
G
2
Posts: 57
Reputation: 2,078

Post » Sat Oct 15, 2011 7:51 am

Haha, nice. I guess bullet works fine too, I didn't think of that.
B
20
S
9
G
6
Posts: 607
Reputation: 6,112

Post » Sat Oct 15, 2011 7:57 am

Groovy, thanks a lot for your help. I really appreciate it! I would have sent you some PM's, but unfortunately, I don't have enough rep, it seems! Back to work I go!
B
16
S
3
G
2
Posts: 57
Reputation: 2,078

PreviousNext

Return to How do I....?

Who is online

Users browsing this forum: Braus, jul, nimos100, Yahoo [Bot] and 17 guests