Ask here your questions to get help using GDevelop.
By Mats
#42383 Hi, I managed to get three parts out of four of this brick game uploaded on my very very slow and unreliable mobile phone internet out here in the countryside. I thought I would post it here since this is probably still useful even with the last part missing (which is putting bricks in, doing rebounds off them and deleting them when colliding with them). I probably won't get any more tutorials uploaded for two weeks due to this slow internet.

Part 1: https://www.youtube.com/watch?v=wyR0c-g7L6Q
Part 2: https://www.youtube.com/watch?v=Okp4hRO-4fc
Part 3: http://youtu.be/m3KY1u_2YsM

If you have any feedback about how I can make these videos better, I will try to improve them. :)
By komencanto
#43630 Hi, I made a ping-pong game too, a bit different than in your tutorial. I would like to check it for any errors and if it is OK I can also make a tutorial about it.
Here is the project:
(4.86 KiB) Downloaded 142 times

- The bat is moved by mouse.
- Used "Move away" action to separate objects after collision.
- The ball re-bounces from the bat at a random angle between 190 and 350 degrees.
By Mats
#43638 Three suggestions:

Use a ball sprite with a transparent background.
Move the ball away using a +x/+y/-x/-y position thing like I did so that the ball doesn't end up partly inside walls/the paddle when it collides (it just looks a bit neater).
Make the ball start a bit higher up OR don't start the ball moving until the player clicks the left mouse or something - The ball falls quite fast from not very high and can easily give you an instant game over.

Nice work though. There don't seem to be any bugs/problems. :)
By komencanto
#43642
Mats wrote:Three suggestions:

Use a ball sprite with a transparent background.

It shows that in GD you can't select transparent background for a sprite. (I just draw it in Windows Paint and couldn't make it's background transparent. Next time will use PaintNet instead.)

Move the ball away using a +x/+y/-x/-y position thing like I did so that the ball doesn't end up partly inside walls/the paddle when it collides (it just looks a bit neater).

Used "Move away" action instead of it. It should do the trick, I thought. Need to adjust collision points, I think.

Make the ball start a bit higher up OR don't start the ball moving until the player clicks the left mouse or something - The ball falls quite fast from not very high and can easily give you an instant game over.

OK.

Thanks for your feedback!:)

Still not sure if my way of doing the bouncing part is right, because of the ball stucking in the corners if I not using hidden markers for them...
Would like to have bouncing automatism instead.
By Mats
#43648
Still not sure if my way of doing the bouncing part is right, because of the ball stucking in the corners if I not using hidden markers for them...


Then why not do it the same way I did it? ;)

It shows that in GD you can't select transparent background for a sprite


I use GIMP for making all my sprites. It's very powerful and totally free. :)
By komencanto
#43684
It shows that in GD you can't select transparent background for a sprite


Actually... I found the Action: Sprite-Effects-"Make a color of the object transparent" which solves this problem.
Just add it at the beginning of the scene and the background of the ball gets transparent. Sorry, my mistake. ;)
By komencanto
#43750 Tried to use physics automatism in the game. It get the ball bounce and the program shorter, but I get a problem with bricks - they don't dissapear always when hit by the ball. Why?
ball_hits_brick.png
ball_hits_brick.png (3.22 KiB) Viewed 4360 times

(4.02 KiB) Downloaded 126 times

(Press "Space" to start the game.)