Is C2 too slow to make a proper Arkanoid clone?

Discussion and feedback on Construct 2

Post » Fri Aug 21, 2015 4:05 pm

When the ball bounces fast between 2 bricks that require more than 1 hit to be destroyed, the game can't keep up and the bricks just stay on screen. The bricks are members of the "bricks" family wich has an instance variable "hits" that subtracts 1 every time the ball collides with it. Hopefully I'm doing something wrong or it would mean that hardware from 1986 outperforms C2 :)

Any insight, tips and so on would be great!

Thanks
B
33
S
10
G
6
Posts: 259
Reputation: 6,801

Post » Fri Aug 21, 2015 4:16 pm

Post your test capx so we can see what you're doing.
B
103
S
38
G
19
Posts: 962
Reputation: 17,996

Post » Fri Aug 21, 2015 4:29 pm

B
33
S
10
G
6
Posts: 259
Reputation: 6,801

Post » Fri Aug 21, 2015 7:31 pm

Here's a screenshot of the fix:

Image

This way, the bricks' deaths are triggered by the collision. I also changed your greater than or equal to to just greater than. You might want it differently, but this way, they die if they're hit and have 1 health left.
B
103
S
38
G
19
Posts: 962
Reputation: 17,996

Post » Fri Aug 21, 2015 7:50 pm

Thanks for taking the time to help! Made the changes and they work great! What was my error here? (so I can learn and avoid similar misstakes in the future)
I know that I rarely use else statements.. might be something I need to look into more often :)

Thanks again!
B
33
S
10
G
6
Posts: 259
Reputation: 6,801

Post » Fri Aug 21, 2015 9:29 pm

Oh yeah, one more thing, you don't need to use dt in "wait X seconds" events. Just put in 3--it already takes dt into account.

I've just found that it isn't stunningly reliable to trigger things once off of variable changes. It seemed to always work before, so I'm actually not sure why that didn't work. I just knew that On collision stuff always works unless there's a framerate hiccup. I decided to just put it all under one action and let it decide from there what to do with the objects instead of doing stuff after the fact. Changing the > or = to just > also made things simpler in logic to me. Then you can just set them to "1 hit" and it'll die when you hit it. Then you don't need to worry about the 0 variable anyways.
B
103
S
38
G
19
Posts: 962
Reputation: 17,996

Post » Fri Aug 21, 2015 9:48 pm

Ok that's some valueable info, thanks!
Had a look at your Courier game, looks to be great and congrats on the steam greenlight.
B
33
S
10
G
6
Posts: 259
Reputation: 6,801


Return to Construct 2 General

Who is online

Users browsing this forum: No registered users and 6 guests