u/WilledWithin

I'm having trouble making Pong from scratch

Basically, I have a create event that sets the speed to 5 and the movement of the ball to be random. I also set the direction of the ball after it hits a paddle in its step event to be random as well. I also set it so the room restarts whenever the ball its the out of frame left and right walls. The top and lower walls end up in the ball bouncing. However, whenever I attempt to run it the ball will bounce off the paddle a couple of times before eventually vibrating out of frame. I'm guessing this is because it hits a certain spot that locks it in a bouncing loop. What should I do? Thanks in advance.

Step Event of ball:

if(place_meeting(x,y,wall_left)){

room\_restart();

}

if(place_meeting(x,y,wall_down)){

direction=irandom\_range(180,0);

}

if(place_meeting(x,y,wall_right)){

room\_restart();

}

if(place_meeting(x,y,wall_up)){

direction=irandom\_range(180,270);

}

if (place_meeting(x,y,paddle_player)){

direction=irandom\_range(0,270);

}

if(place_meeting(x,y,paddle_enemy)){

	direction=irandom\_range(180,0);

}
reddit.com
u/WilledWithin — 3 days ago

I'm confused

A while back I learned that a way to gain confidence is to set and achieve goals. I thought it sounded pretty simple until I researched the specifics. I learned about SMART goals and attempted to split a large goal(finishing a YouTube drawing video) into pieces(30 minutes of drawing per day because I also heard it's not wise to have one large goal to go after and I also needed to time my goals. However it's not fun so far and I'm still not sure if I'm doing this right.

So to put it simply, I'm overwhelmed and I would like to find a simplified explanation so I can make sure I'm doing everything I need to. Thanks in advance.

reddit.com
u/WilledWithin — 6 days ago

What the heck is going on?

I do believe that my drawings are too short with short legs, but when I used the 7 and a half head rule, it seems like the drawings would look strange if I adjusted the heights accordingly. Am I doing something wrong? Am I just not seeing the big picture? Thanks in advance.

https://preview.redd.it/w01luznxk71h1.png?width=3000&format=png&auto=webp&s=f2e4861c14537c8e37bdf3ebe25585e71ff05ad5

https://preview.redd.it/bfyabvltk71h1.png?width=3000&format=png&auto=webp&s=40d6e1451ebb961b85f1e0dce8d532f0b85c6382

reddit.com
u/WilledWithin — 7 days ago

What should be done after you get confident?

Let's say we've used goals to successfully build confidence in ourselves. Will we have to continue to achieve new goals over time, and/or engage in "warm-ups" of some sort? Thanks in advance.

reddit.com
u/WilledWithin — 12 days ago

I heard that you can gain confidence by setting goals and achieving them, and I planned on doing so. I set goals that were strict and difficult and I realized I needed to be somewhere in the middle of strict and easy.

I'm still trying, but I wanted to know if there are any more requirements. Like making the goals specific, measurable,etc. Thanks in advance.

reddit.com
u/WilledWithin — 18 days ago

I've been watching tutorials for a while. However, when I tried to create pong, I tried many angles and I could not stop the ball from vibrating after colliding several times. I've tried using place_meeting, distance_to_object, etc. I am not asking for the solution to this, rather a more effective way of learning/tips where I can improve upon my critical thinking skills to code more effectively on my own. Thanks in advance.

reddit.com
u/WilledWithin — 22 days ago

To put it simply, I heard that you can become confident by setting goals and then achieving them. I'm currently practicing code for two hours each day and I plan on doing so for six months. At the very least it is rapidly improving my skills, but I want to know if it will also help grow my confidence. Thanks in advance.

reddit.com
u/WilledWithin — 24 days ago