Please Help! Repetitive Audio Event - How do I

Get help using Construct 2

Post » Thu Oct 27, 2016 5:16 am

Thanks a lot @plinkie i gotta go too

I will be very glad if you can help later on PM, I thought this would be simpler but its always bugging.... I added an event that says "when sprite is outside layout, substract 1 from numPips (sprite count) and on the debugger when the sprite goes outside the layout, the number keeps adding up non-stop! its not substracting just once, it keeps goin' !

good night!
B
22
S
10
Posts: 82
Reputation: 1,910

Post » Thu Oct 27, 2016 9:57 pm

Message: farfetchd83 can only post plain text URLS until they have 500 rep. 1 URLS modified. Why?
@plinkie ! I cannot PM because: disabled the sending of Private Messages until you have earnt 500 rep.

Please check this example: https://filehost.net/713ac909224a67fd

So that basically what im trying to do, but that was just created to send to you. Can you make the game go to next layout when ALL sprites are touching the floor? I added the global variable to count sprites, but its counting crazy, keeps adding up...
B
22
S
10
Posts: 82
Reputation: 1,910

Post » Thu Oct 27, 2016 10:25 pm

Yeah in my original example I had the calculation for total sprites on start of layout only, so it does it once. You have it doing it continuously every tick. You need to put the add to sprite count at start of layout or under a trigger once while true event. You also can't use on collision with because that is checking when they first hit the sprite, you want when they have all landed so it's better to use overlap at offset for this. https://dl.dropboxusercontent.com/u/495 ... nkie2.capx
B
47
S
18
G
84
Posts: 2,273
Reputation: 49,800

Post » Thu Oct 27, 2016 11:36 pm

Sorry @plinkie I couldnt open the file because im using an older version of C2... Can you send me print screen of the Event Sheet? Thank a lot
B
22
S
10
Posts: 82
Reputation: 1,910

Post » Fri Oct 28, 2016 12:15 am

Image
B
47
S
18
G
84
Posts: 2,273
Reputation: 49,800

Post » Fri Oct 28, 2016 12:40 am

@plinkie you are the best, this community is the best ;^)

thank a lot for all the help :)
B
22
S
10
Posts: 82
Reputation: 1,910

Post » Fri Oct 28, 2016 12:51 am

np you're welcome.
B
47
S
18
G
84
Posts: 2,273
Reputation: 49,800

Post » Mon Oct 31, 2016 5:09 pm

Message: farfetchd83 can only post plain text URLS until they have 500 rep. 1 URLS modified. Why?
Hello @plinkie ! I still cannot PM you..

if you have some time, could you help me out with another issue?

When the green box touches another green box, it spawns a white one, but if it fall straight horizontally into another green box, it will spawn 2 boxes instead of only one white box... Can you solve this? http://www.filedropper.com/example2_1

If yes, can you send me a print screen of the event sheet?

thank you very much
B
22
S
10
Posts: 82
Reputation: 1,910

Post » Mon Oct 31, 2016 5:52 pm

You didn't specify where to spawn the white box so it spawns a white box on all of the green boxes. You can use Pick nth instance to specify which object you want to use when an overlap or collision occurs, one will be instance 0 the other will be instance 1. Try this :

Image
B
47
S
18
G
84
Posts: 2,273
Reputation: 49,800

Post » Mon Oct 31, 2016 8:25 pm

That's really interesting, thank a lot, gonna fix it :)
B
22
S
10
Posts: 82
Reputation: 1,910

PreviousNext

Return to How do I....?

Who is online

Users browsing this forum: BiffanyPFH, Brandons404, Julot135, MadSpy, Yahoo [Bot] and 21 guests