Destroying particles + Global events

New releases and general discussions.

Post » Fri Jun 10, 2011 11:35 am

Is there a way to destroy particles when they collide with a solid object?
B
106
S
35
G
37
Posts: 798
Reputation: 25,215

Post » Fri Jun 10, 2011 12:48 pm

I don't think so. You'd have to use sprites or fake it. What effect you wanna achieve?
ImageImage
B
25
S
6
G
8
Posts: 773
Reputation: 6,643

Post » Fri Jun 10, 2011 2:23 pm

[quote="Noga":3qusufjy]I don't think so. You'd have to use sprites or fake it. What effect you wanna achieve?[/quote:3qusufjy]

http://i.imgur.com/MJMpW.jpg

I'm trying to make this waterfall stop when it collides with that platform.
B
106
S
35
G
37
Posts: 798
Reputation: 25,215

Post » Fri Jun 10, 2011 4:13 pm

You'll have to do your own particles with a sprite object to do that.
B
79
S
24
G
54
Posts: 4,746
Reputation: 40,755

Post » Fri Jun 10, 2011 4:19 pm

If there's only one instance of that platform, and only one instance of your particles, then you could just compare the x of the platform. Like platform x is less than n amount.
Image Image
B
161
S
48
G
90
Posts: 7,356
Reputation: 66,767

Post » Sun Jun 12, 2011 9:00 am

You could use the mask effect: http://dl.dropbox.com/u/4322334/mask.cap
B
2
S
1
G
4
Posts: 71
Reputation: 1,342

Post » Sun Jun 12, 2011 10:01 pm

[quote="Porlo":30t7d5og]You could use the mask effect: http://dl.dropbox.com/u/4322334/mask.cap[/quote:30t7d5og]

Thanks, that's a lot better than what I was doing (creating another backdrop and putting it in front of the waterfall).

Also thanks for the anwsers everyone!
B
106
S
35
G
37
Posts: 798
Reputation: 25,215

Post » Mon Jun 13, 2011 11:46 pm

I'll use this thread to ask another question so I won't flood the board.

I just began programming my game properly, and I'd like to know.. is there a way to make a global group or global event sheet?

If not, should I just create one event sheet for everything in the game? Or should I create different sheets and copy the basic code to all of them?

Thanks!
B
106
S
35
G
37
Posts: 798
Reputation: 25,215

Post » Tue Jun 14, 2011 1:18 am

Just create a new event sheet, and then for each layout event sheet go "inlcude event sheet".
B
134
S
65
G
16
Posts: 1,766
Reputation: 19,190

Post » Tue Jun 14, 2011 1:26 am

[quote="alspal":1a2tgxv5]Just create a new event sheet, and then for each layout event sheet go "inlcude event sheet".[/quote:1a2tgxv5]

Thank you!!
B
106
S
35
G
37
Posts: 798
Reputation: 25,215

Next

Return to Construct Classic Discussion

Who is online

Users browsing this forum: No registered users and 1 guest