00:00
00:00
Newgrounds Background Image Theme

geuaogen just joined the crew!

We need you on the team, too.

Support Newgrounds and get tons of perks for just $2.99!

Create a Free Account and then..

Become a Supporter!

Noob Scratcher in need of probable help almost half of the time aaaahhh!!

406 Views | 41 Replies
New Topic

Hey. its me the one and only cray cray forum spammer of newgrounds (at least i hope im not)


Anywho, Scratch is a rly cool site to make rly cool games and pls dont be offended when i say this but, is a kid friendly version of NG.

i mean am i wrong tho?


But in all seriousness, I wanna learn how to make cool games but would love some help from some pros/teachers that might be around here on this site! if ur always up for showing this dumb farthead how to do certain things, thx so much for doing so! i would really appretiate it.


oh yea and kind of the other reason im making this other than i dont know how it works is becuase i rly want to make a pacman game thats almost identical to the original arcade game but all the tutorials on youtube make no sense and they just cant seem to work out for me when i follow them.


Oh well we will have to see

hope to chat and be goofy :P


pacman


you need to break down the parts of your program, recognize everything that makes up your game. this is called divide and conquer. to start:


  • the ghosts
  • the player
  • the animation of the player
  • the movement of the player
  • the direction of the player
  • the movement of the ghosts
  • the balls
  • the walls
  • the fruits
  • the placement of the walls, balls and large balls
  • timer
  • score
  • the player eating balls
  • the behavior of ghosts changing after a fruit
  • the player colliding with walls
  • the player hitting a ghost (with and without a fruit)
  • duration of fruit effect
  • etc.


then you need to think what is needed for each thing. the tools necessary to create each part and make it work. consider what Scratch has to offer and how it helps with each part.



if Scratch doesn't offer a tool to solve a specific problem, you have to roll out your own solution using code. you can ask for help with these specific problems, once you face them, of course


finally, you need to outline a plan to realize your game. you start from something simple, you grow it incrementally until it looks good. it is a series of steps, of increasingly difficulty, and each step needs to build on previous steps, without shortcuts or skipping. example:


  1. place the player on the stage
  2. make it animate
  3. make it controllable with keyboard
  4. place one wall in the stage
  5. make the player stop moving after it hits the wall
  6. make several clones of the wall and make sure the player stops moving after hitting them
  7. place one ghost in the stage
  8. make the ghost move randomly (this is tricky!)
  9. make the ghost change direction after hitting a wall
  10. add one ball in the stage
  11. make it disappear after the player hits it
  12. create a score
  13. make the score increase after the player hits the ball
  14. make several clones of the ball in the stage
  15. etc.


good luck


O prudente varão há de ser mudo,

Que é melhor neste mundo, mar de enganos,

Ser louco c’os demais, que só, sisudo


use pen and paper to think. don't try to keep everything in your head btw


O prudente varão há de ser mudo,

Que é melhor neste mundo, mar de enganos,

Ser louco c’os demais, que só, sisudo


so ive ran into my first delema. i try to make pac man stop when touching the maze but he just keeps going out of bounds. i tried making the other scripts stop when pacman is in colision with it but that failed. could be a problem with in what layer they are on? idk but there has to be a way to fix it up.iu_1353827_19930319.png


At 2/16/25 04:17 PM, coolCartz427 wrote:so ive ran into my first delema. i try to make pac man stop when touching the maze but he just keeps going out of bounds. i tried making the other scripts stop when pacman is in colision with it but that failed. could be a problem with in what layer they are on? idk but there has to be a way to fix it up.


Using twice the same starting block is not a good idea (in your case the two "when flag cliced") because u dont know which one will be executed first.

In you case, it is as well the reason why it doesn't work. The second flag's forever loop is inside a if block , so it is executed only once, frame one. If you are not touching the maze when you click the flag, this script stops imedialty without doing anything. You should put the "if touching maze" inside the forever loop of the main green flag program, after the existing blocks, and get ride of the second green flag script.

If you are touching the maze, you should not stop all the other script, but just cancel the last movement you did, aka move -3.


At 2/16/25 04:17 PM, coolCartz427 wrote:so ive ran into my first delema. i try to make pac man stop when touching the maze but he just keeps going out of bounds. i tried making the other scripts stop when pacman is in colision with it but that failed. could be a problem with in what layer they are on? idk but there has to be a way to fix it up.


  1. "if touching Maze then" is checked only once startup, you want to it inside the "forever" loop so that you check it all the time
  2. you probably want to copy the "forever" loop that runs "move 3 steps" and "next costume" for every "when X arrow key pressed", so that it starts moving and animating again if it hit a wall. learn how to make a function so that the code is not replicated and you just call the function for each arrow press. functions are useful because when you modify its contents, all users of the function enjoy the changes, otherwise you have to replicate changes three times, which is error-prone

O prudente varão há de ser mudo,

Que é melhor neste mundo, mar de enganos,

Ser louco c’os demais, que só, sisudo


At 2/16/25 06:14 PM, Salamandre wrote:
At 2/16/25 04:17 PM, coolCartz427 wrote:so ive ran into my first delema. i try to make pac man stop when touching the maze but he just keeps going out of bounds. i tried making the other scripts stop when pacman is in colision with it but that failed. could be a problem with in what layer they are on? idk but there has to be a way to fix it up.

Using twice the same starting block is not a good idea (in your case the two "when flag cliced") because u dont know which one will be executed first.
In you case, it is as well the reason why it doesn't work. The second flag's forever loop is inside a if block , so it is executed only once, frame one. If you are not touching the maze when you click the flag, this script stops imedialty without doing anything. You should put the "if touching maze" inside the forever loop of the main green flag program, after the existing blocks, and get ride of the second green flag script.
If you are touching the maze, you should not stop all the other script, but just cancel the last movement you did, aka move -3.


damn I've been ninja'd :(

this -3 thing is important indeed! I didn't think of it


O prudente varão há de ser mudo,

Que é melhor neste mundo, mar de enganos,

Ser louco c’os demais, que só, sisudo


At 2/16/25 06:14 PM, Salamandre wrote:
At 2/16/25 04:17 PM, coolCartz427 wrote:so ive ran into my first delema. i try to make pac man stop when touching the maze but he just keeps going out of bounds. i tried making the other scripts stop when pacman is in colision with it but that failed. could be a problem with in what layer they are on? idk but there has to be a way to fix it up.

Using twice the same starting block is not a good idea (in your case the two "when flag cliced") because u dont know which one will be executed first.
In you case, it is as well the reason why it doesn't work. The second flag's forever loop is inside a if block , so it is executed only once, frame one. If you are not touching the maze when you click the flag, this script stops imedialty without doing anything. You should put the "if touching maze" inside the forever loop of the main green flag program, after the existing blocks, and get ride of the second green flag script.
If you are touching the maze, you should not stop all the other script, but just cancel the last movement you did, aka move -3.


ok i know where your heads at cuz this did feel like pacman was hitting the maze wall now, but he is still animated even if the switch to closed costume is in the forever loop. in the real game, pac man stops moving his mouth when in contact with a wall and doesnt clip in and out of it. what do you thinks up now?iu_1353887_19930319.png


At 2/16/25 07:12 PM, coolCartz427 wrote:
At 2/16/25 06:14 PM, Salamandre wrote:
At 2/16/25 04:17 PM, coolCartz427 wrote:so ive ran into my first delema. i try to make pac man stop when touching the maze but he just keeps going out of bounds. i tried making the other scripts stop when pacman is in colision with it but that failed. could be a problem with in what layer they are on? idk but there has to be a way to fix it up.

Using twice the same starting block is not a good idea (in your case the two "when flag cliced") because u dont know which one will be executed first.
In you case, it is as well the reason why it doesn't work. The second flag's forever loop is inside a if block , so it is executed only once, frame one. If you are not touching the maze when you click the flag, this script stops imedialty without doing anything. You should put the "if touching maze" inside the forever loop of the main green flag program, after the existing blocks, and get ride of the second green flag script.
If you are touching the maze, you should not stop all the other script, but just cancel the last movement you did, aka move -3.

ok i know where your heads at cuz this did feel like pacman was hitting the maze wall now, but he is still animated even if the switch to closed costume is in the forever loop. in the real game, pac man stops moving his mouth when in contact with a wall and doesnt clip in and out of it. what do you thinks up now?


try to move the "wait 0.03 seconds" below the "if touching ..."


as for the animation, learn about variables and create a true/false variable. when you hit a wall, make a variable called "wall is hit" true, and when the player press some arrow key, make it false. then the "next costume" is wrapped inside a "if wall is hit"


O prudente varão há de ser mudo,

Que é melhor neste mundo, mar de enganos,

Ser louco c’os demais, que só, sisudo


At 2/16/25 07:58 PM, detergent1 wrote:
At 2/16/25 07:12 PM, coolCartz427 wrote:
At 2/16/25 06:14 PM, Salamandre wrote:
At 2/16/25 04:17 PM, coolCartz427 wrote:so ive ran into my first delema. i try to make pac man stop when touching the maze but he just keeps going out of bounds. i tried making the other scripts stop when pacman is in colision with it but that failed. could be a problem with in what layer they are on? idk but there has to be a way to fix it up.

Using twice the same starting block is not a good idea (in your case the two "when flag cliced") because u dont know which one will be executed first.
In you case, it is as well the reason why it doesn't work. The second flag's forever loop is inside a if block , so it is executed only once, frame one. If you are not touching the maze when you click the flag, this script stops imedialty without doing anything. You should put the "if touching maze" inside the forever loop of the main green flag program, after the existing blocks, and get ride of the second green flag script.
If you are touching the maze, you should not stop all the other script, but just cancel the last movement you did, aka move -3.

ok i know where your heads at cuz this did feel like pacman was hitting the maze wall now, but he is still animated even if the switch to closed costume is in the forever loop. in the real game, pac man stops moving his mouth when in contact with a wall and doesnt clip in and out of it. what do you thinks up now?

try to move the "wait 0.03 seconds" below the "if touching ..."

as for the animation, learn about variables and create a true/false variable. when you hit a wall, make a variable called "wall is hit" true, and when the player press some arrow key, make it false. then the "next costume" is wrapped inside a "if wall is hit"


alright your idea somewhat worked. pacman stopped on the wall and is not going out and in anymore plus is staying on the specific costume.

however hes still in the wall and whenever i try to make him move a little bit back so he doesnt go in the wall, it freaks out again (this meaning anything below -3 will make him animated and tweak out again)


this could be fixed in the variable thing u told me im guessing but idk i just wanted to make sure.


At 2/17/25 08:38 AM, coolCartz427 wrote:
At 2/16/25 07:58 PM, detergent1 wrote:
At 2/16/25 07:12 PM, coolCartz427 wrote:
At 2/16/25 06:14 PM, Salamandre wrote:
At 2/16/25 04:17 PM, coolCartz427 wrote:so ive ran into my first delema. i try to make pac man stop when touching the maze but he just keeps going out of bounds. i tried making the other scripts stop when pacman is in colision with it but that failed. could be a problem with in what layer they are on? idk but there has to be a way to fix it up.

Using twice the same starting block is not a good idea (in your case the two "when flag cliced") because u dont know which one will be executed first.
In you case, it is as well the reason why it doesn't work. The second flag's forever loop is inside a if block , so it is executed only once, frame one. If you are not touching the maze when you click the flag, this script stops imedialty without doing anything. You should put the "if touching maze" inside the forever loop of the main green flag program, after the existing blocks, and get ride of the second green flag script.
If you are touching the maze, you should not stop all the other script, but just cancel the last movement you did, aka move -3.

ok i know where your heads at cuz this did feel like pacman was hitting the maze wall now, but he is still animated even if the switch to closed costume is in the forever loop. in the real game, pac man stops moving his mouth when in contact with a wall and doesnt clip in and out of it. what do you thinks up now?

try to move the "wait 0.03 seconds" below the "if touching ..."

as for the animation, learn about variables and create a true/false variable. when you hit a wall, make a variable called "wall is hit" true, and when the player press some arrow key, make it false. then the "next costume" is wrapped inside a "if wall is hit"

alright your idea somewhat worked. pacman stopped on the wall and is not going out and in anymore plus is staying on the specific costume.
however hes still in the wall and whenever i try to make him move a little bit back so he doesnt go in the wall, it freaks out again (this meaning anything below -3 will make him animated and tweak out again)

this could be fixed in the variable thing u told me im guessing but idk i just wanted to make sure.


iu_1354076_19930319.png


Interesting. Have you considered posting your Scratch games to Newgrounds? Perhaps not a 1 to 1 Pac-Man clone, something original.


CS - Musician, animator, and nostalgia enthusiast since 2020.


- they/she🏳️‍⚧️

- My voice sucks


At 2/17/25 08:39 AM, coolCartz427 wrote:
At 2/17/25 08:38 AM, coolCartz427 wrote:
At 2/16/25 07:58 PM, detergent1 wrote:
At 2/16/25 07:12 PM, coolCartz427 wrote:
At 2/16/25 06:14 PM, Salamandre wrote:
At 2/16/25 04:17 PM, coolCartz427 wrote:so ive ran into my first delema. i try to make pac man stop when touching the maze but he just keeps going out of bounds. i tried making the other scripts stop when pacman is in colision with it but that failed. could be a problem with in what layer they are on? idk but there has to be a way to fix it up.

Using twice the same starting block is not a good idea (in your case the two "when flag cliced") because u dont know which one will be executed first.
In you case, it is as well the reason why it doesn't work. The second flag's forever loop is inside a if block , so it is executed only once, frame one. If you are not touching the maze when you click the flag, this script stops imedialty without doing anything. You should put the "if touching maze" inside the forever loop of the main green flag program, after the existing blocks, and get ride of the second green flag script.
If you are touching the maze, you should not stop all the other script, but just cancel the last movement you did, aka move -3.

ok i know where your heads at cuz this did feel like pacman was hitting the maze wall now, but he is still animated even if the switch to closed costume is in the forever loop. in the real game, pac man stops moving his mouth when in contact with a wall and doesnt clip in and out of it. what do you thinks up now?

try to move the "wait 0.03 seconds" below the "if touching ..."

as for the animation, learn about variables and create a true/false variable. when you hit a wall, make a variable called "wall is hit" true, and when the player press some arrow key, make it false. then the "next costume" is wrapped inside a "if wall is hit"

alright your idea somewhat worked. pacman stopped on the wall and is not going out and in anymore plus is staying on the specific costume.
however hes still in the wall and whenever i try to make him move a little bit back so he doesnt go in the wall, it freaks out again (this meaning anything below -3 will make him animated and tweak out again)

this could be fixed in the variable thing u told me im guessing but idk i just wanted to make sure.

Also adding to this:


Scratch wall collision is always a bugger, but I fixed this by using a square hitbox, then switching to the Pacman sprite, which then had to be animated externally using a variable to display frames (since I can't use "next costume").


Also, "when key pressed" still turns Pacman regardless of whether he's alive, or the green flag isn't set, so use if starements.

iu_1354100_8157415.webp


CS - Musician, animator, and nostalgia enthusiast since 2020.


- they/she🏳️‍⚧️

- My voice sucks


At 2/17/25 09:13 AM, CrimsonKero wrote:Interesting. Have you considered posting your Scratch games to Newgrounds? Perhaps not a 1 to 1 Pac-Man clone, something original.


oh yea that would be sweet! whenever i finish this one and release it to the scratch site community, i can consider mayb making one for here! if its possible, than that rocks!


At 2/17/25 09:47 AM, CrimsonKero wrote:
At 2/17/25 08:39 AM, coolCartz427 wrote:
At 2/17/25 08:38 AM, coolCartz427 wrote:
At 2/16/25 07:58 PM, detergent1 wrote:
At 2/16/25 07:12 PM, coolCartz427 wrote:
At 2/16/25 06:14 PM, Salamandre wrote:
At 2/16/25 04:17 PM, coolCartz427 wrote:so ive ran into my first delema. i try to make pac man stop when touching the maze but he just keeps going out of bounds. i tried making the other scripts stop when pacman is in colision with it but that failed. could be a problem with in what layer they are on? idk but there has to be a way to fix it up.

Using twice the same starting block is not a good idea (in your case the two "when flag cliced") because u dont know which one will be executed first.
In you case, it is as well the reason why it doesn't work. The second flag's forever loop is inside a if block , so it is executed only once, frame one. If you are not touching the maze when you click the flag, this script stops imedialty without doing anything. You should put the "if touching maze" inside the forever loop of the main green flag program, after the existing blocks, and get ride of the second green flag script.
If you are touching the maze, you should not stop all the other script, but just cancel the last movement you did, aka move -3.

ok i know where your heads at cuz this did feel like pacman was hitting the maze wall now, but he is still animated even if the switch to closed costume is in the forever loop. in the real game, pac man stops moving his mouth when in contact with a wall and doesnt clip in and out of it. what do you thinks up now?

try to move the "wait 0.03 seconds" below the "if touching ..."

as for the animation, learn about variables and create a true/false variable. when you hit a wall, make a variable called "wall is hit" true, and when the player press some arrow key, make it false. then the "next costume" is wrapped inside a "if wall is hit"

alright your idea somewhat worked. pacman stopped on the wall and is not going out and in anymore plus is staying on the specific costume.
however hes still in the wall and whenever i try to make him move a little bit back so he doesnt go in the wall, it freaks out again (this meaning anything below -3 will make him animated and tweak out again)

this could be fixed in the variable thing u told me im guessing but idk i just wanted to make sure.
Also adding to this:

Scratch wall collision is always a bugger, but I fixed this by using a square hitbox, then switching to the Pacman sprite, which then had to be animated externally using a variable to display frames (since I can't use "next costume").

Also, "when key pressed" still turns Pacman regardless of whether he's alive, or the green flag isn't set, so use if starements.


oof i gots to tell u my pc is kinda under a weird progam my dad downloaded to keep me safe n stuff and that somehow manages to not show forum images on NG so if you could maybe just tell me what you changed in text and ill just convert all that into my game :D


At 2/17/25 12:43 PM, coolCartz427 wrote:
At 2/17/25 09:47 AM, CrimsonKero wrote:
At 2/17/25 08:39 AM, coolCartz427 wrote:
At 2/17/25 08:38 AM, coolCartz427 wrote:
At 2/16/25 07:58 PM, detergent1 wrote:
At 2/16/25 07:12 PM, coolCartz427 wrote:
At 2/16/25 06:14 PM, Salamandre wrote:
At 2/16/25 04:17 PM, coolCartz427 wrote:so ive ran into my first delema. i try to make pac man stop when touching the maze but he just keeps going out of bounds. i tried making the other scripts stop when pacman is in colision with it but that failed. could be a problem with in what layer they are on? idk but there has to be a way to fix it up.

Using twice the same starting block is not a good idea (in your case the two "when flag cliced") because u dont know which one will be executed first.
In you case, it is as well the reason why it doesn't work. The second flag's forever loop is inside a if block , so it is executed only once, frame one. If you are not touching the maze when you click the flag, this script stops imedialty without doing anything. You should put the "if touching maze" inside the forever loop of the main green flag program, after the existing blocks, and get ride of the second green flag script.
If you are touching the maze, you should not stop all the other script, but just cancel the last movement you did, aka move -3.

ok i know where your heads at cuz this did feel like pacman was hitting the maze wall now, but he is still animated even if the switch to closed costume is in the forever loop. in the real game, pac man stops moving his mouth when in contact with a wall and doesnt clip in and out of it. what do you thinks up now?

try to move the "wait 0.03 seconds" below the "if touching ..."

as for the animation, learn about variables and create a true/false variable. when you hit a wall, make a variable called "wall is hit" true, and when the player press some arrow key, make it false. then the "next costume" is wrapped inside a "if wall is hit"

alright your idea somewhat worked. pacman stopped on the wall and is not going out and in anymore plus is staying on the specific costume.
however hes still in the wall and whenever i try to make him move a little bit back so he doesnt go in the wall, it freaks out again (this meaning anything below -3 will make him animated and tweak out again)

this could be fixed in the variable thing u told me im guessing but idk i just wanted to make sure.
Also adding to this:

Scratch wall collision is always a bugger, but I fixed this by using a square hitbox, then switching to the Pacman sprite, which then had to be animated externally using a variable to display frames (since I can't use "next costume").

Also, "when key pressed" still turns Pacman regardless of whether he's alive, or the green flag isn't set, so use if starements.

oof i gots to tell u my pc is kinda under a weird progam my dad downloaded to keep me safe n stuff and that somehow manages to not show forum images on NG so if you could maybe just tell me what you changed in text and ill just convert all that into my game :D


Yet you can still post images.


CS - Musician, animator, and nostalgia enthusiast since 2020.


- they/she🏳️‍⚧️

- My voice sucks


At 2/17/25 01:46 PM, CrimsonKero wrote:
At 2/17/25 12:43 PM, coolCartz427 wrote:
At 2/17/25 09:47 AM, CrimsonKero wrote:
At 2/17/25 08:39 AM, coolCartz427 wrote:
At 2/17/25 08:38 AM, coolCartz427 wrote:
At 2/16/25 07:58 PM, detergent1 wrote:
At 2/16/25 07:12 PM, coolCartz427 wrote:
At 2/16/25 06:14 PM, Salamandre wrote:
At 2/16/25 04:17 PM, coolCartz427 wrote:so ive ran into my first delema. i try to make pac man stop when touching the maze but he just keeps going out of bounds. i tried making the other scripts stop when pacman is in colision with it but that failed. could be a problem with in what layer they are on? idk but there has to be a way to fix it up.

Using twice the same starting block is not a good idea (in your case the two "when flag cliced") because u dont know which one will be executed first.
In you case, it is as well the reason why it doesn't work. The second flag's forever loop is inside a if block , so it is executed only once, frame one. If you are not touching the maze when you click the flag, this script stops imedialty without doing anything. You should put the "if touching maze" inside the forever loop of the main green flag program, after the existing blocks, and get ride of the second green flag script.
If you are touching the maze, you should not stop all the other script, but just cancel the last movement you did, aka move -3.

ok i know where your heads at cuz this did feel like pacman was hitting the maze wall now, but he is still animated even if the switch to closed costume is in the forever loop. in the real game, pac man stops moving his mouth when in contact with a wall and doesnt clip in and out of it. what do you thinks up now?

try to move the "wait 0.03 seconds" below the "if touching ..."

as for the animation, learn about variables and create a true/false variable. when you hit a wall, make a variable called "wall is hit" true, and when the player press some arrow key, make it false. then the "next costume" is wrapped inside a "if wall is hit"

alright your idea somewhat worked. pacman stopped on the wall and is not going out and in anymore plus is staying on the specific costume.
however hes still in the wall and whenever i try to make him move a little bit back so he doesnt go in the wall, it freaks out again (this meaning anything below -3 will make him animated and tweak out again)

this could be fixed in the variable thing u told me im guessing but idk i just wanted to make sure.
Also adding to this:

Scratch wall collision is always a bugger, but I fixed this by using a square hitbox, then switching to the Pacman sprite, which then had to be animated externally using a variable to display frames (since I can't use "next costume").

Also, "when key pressed" still turns Pacman regardless of whether he's alive, or the green flag isn't set, so use if starements.

oof i gots to tell u my pc is kinda under a weird progam my dad downloaded to keep me safe n stuff and that somehow manages to not show forum images on NG so if you could maybe just tell me what you changed in text and ill just convert all that into my game :D

Yet you can still post images.


yeah. its weird, man.


At 2/17/25 09:47 AM, CrimsonKero wrote:
At 2/17/25 08:39 AM, coolCartz427 wrote:
At 2/17/25 08:38 AM, coolCartz427 wrote:
At 2/16/25 07:58 PM, detergent1 wrote:
At 2/16/25 07:12 PM, coolCartz427 wrote:
At 2/16/25 06:14 PM, Salamandre wrote:
At 2/16/25 04:17 PM, coolCartz427 wrote:so ive ran into my first delema. i try to make pac man stop when touching the maze but he just keeps going out of bounds. i tried making the other scripts stop when pacman is in colision with it but that failed. could be a problem with in what layer they are on? idk but there has to be a way to fix it up.

Using twice the same starting block is not a good idea (in your case the two "when flag cliced") because u dont know which one will be executed first.
In you case, it is as well the reason why it doesn't work. The second flag's forever loop is inside a if block , so it is executed only once, frame one. If you are not touching the maze when you click the flag, this script stops imedialty without doing anything. You should put the "if touching maze" inside the forever loop of the main green flag program, after the existing blocks, and get ride of the second green flag script.
If you are touching the maze, you should not stop all the other script, but just cancel the last movement you did, aka move -3.

ok i know where your heads at cuz this did feel like pacman was hitting the maze wall now, but he is still animated even if the switch to closed costume is in the forever loop. in the real game, pac man stops moving his mouth when in contact with a wall and doesnt clip in and out of it. what do you thinks up now?

try to move the "wait 0.03 seconds" below the "if touching ..."

as for the animation, learn about variables and create a true/false variable. when you hit a wall, make a variable called "wall is hit" true, and when the player press some arrow key, make it false. then the "next costume" is wrapped inside a "if wall is hit"

alright your idea somewhat worked. pacman stopped on the wall and is not going out and in anymore plus is staying on the specific costume.
however hes still in the wall and whenever i try to make him move a little bit back so he doesnt go in the wall, it freaks out again (this meaning anything below -3 will make him animated and tweak out again)

this could be fixed in the variable thing u told me im guessing but idk i just wanted to make sure.
Also adding to this:

Scratch wall collision is always a bugger, but I fixed this by using a square hitbox, then switching to the Pacman sprite, which then had to be animated externally using a variable to display frames (since I can't use "next costume").

Also, "when key pressed" still turns Pacman regardless of whether he's alive, or the green flag isn't set, so use if starements.


whenever you want or ur available, pls tell me what u changed in detail since i cant see the image. sry to bother.


im sorry to bother and keep talking but im just making sure that ppl are still engaged in this cuz i rly want to learn and create in this program. its hard to live life and at the same time think ppl ignore you. this will be the only time i vent i swear on harambe's grave (heh heh he's a monke)

but thx to the ppl who are coming here and teaching me! i rly appretiate it and i hope to do more with yall :P


At 2/18/25 09:37 AM, coolCartz427 wrote:im sorry to bother and keep talking but im just making sure that ppl are still engaged in this cuz i rly want to learn and create in this program. its hard to live life and at the same time think ppl ignore you. this will be the only time i vent i swear on harambe's grave (heh heh he's a monke)
but thx to the ppl who are coming here and teaching me! i rly appretiate it and i hope to do more with yall :P


Anyway, here's the raw file (from the image you couldn't see)

https://www.newgrounds.com/dump/item/0a5fa4ee6488a4d8c95fffecd522d800


CS - Musician, animator, and nostalgia enthusiast since 2020.


- they/she🏳️‍⚧️

- My voice sucks


At 2/18/25 10:58 AM, CrimsonKero wrote:
At 2/18/25 09:37 AM, coolCartz427 wrote:im sorry to bother and keep talking but im just making sure that ppl are still engaged in this cuz i rly want to learn and create in this program. its hard to live life and at the same time think ppl ignore you. this will be the only time i vent i swear on harambe's grave (heh heh he's a monke)
but thx to the ppl who are coming here and teaching me! i rly appretiate it and i hope to do more with yall :P

Anyway, here's the raw file (from the image you couldn't see)
https://www.newgrounds.com/dump/item/0a5fa4ee6488a4d8c95fffecd522d800


oh alright so is this just an example for me to use on my own pacman project? just kinda confused. as if im not that enough lol


At 2/18/25 11:35 AM, coolCartz427 wrote:
At 2/18/25 10:58 AM, CrimsonKero wrote:
At 2/18/25 09:37 AM, coolCartz427 wrote:im sorry to bother and keep talking but im just making sure that ppl are still engaged in this cuz i rly want to learn and create in this program. its hard to live life and at the same time think ppl ignore you. this will be the only time i vent i swear on harambe's grave (heh heh he's a monke)
but thx to the ppl who are coming here and teaching me! i rly appretiate it and i hope to do more with yall :P

Anyway, here's the raw file (from the image you couldn't see)
https://www.newgrounds.com/dump/item/0a5fa4ee6488a4d8c95fffecd522d800

oh alright so is this just an example for me to use on my own pacman project? just kinda confused. as if im not that enough lol


Read the comments and compare to your own project.


CS - Musician, animator, and nostalgia enthusiast since 2020.


- they/she🏳️‍⚧️

- My voice sucks


At 2/18/25 11:47 AM, CrimsonKero wrote:
At 2/18/25 11:35 AM, coolCartz427 wrote:
At 2/18/25 10:58 AM, CrimsonKero wrote:
At 2/18/25 09:37 AM, coolCartz427 wrote:im sorry to bother and keep talking but im just making sure that ppl are still engaged in this cuz i rly want to learn and create in this program. its hard to live life and at the same time think ppl ignore you. this will be the only time i vent i swear on harambe's grave (heh heh he's a monke)
but thx to the ppl who are coming here and teaching me! i rly appretiate it and i hope to do more with yall :P

Anyway, here's the raw file (from the image you couldn't see)
https://www.newgrounds.com/dump/item/0a5fa4ee6488a4d8c95fffecd522d800

oh alright so is this just an example for me to use on my own pacman project? just kinda confused. as if im not that enough lol

Read the comments and compare to your own project.


already im seeing the improvements. its looks a lot cleaner. i really have to thank you its great getting help. u made this?


At 2/18/25 11:59 AM, coolCartz427 wrote:
At 2/18/25 11:47 AM, CrimsonKero wrote:
At 2/18/25 11:35 AM, coolCartz427 wrote:
At 2/18/25 10:58 AM, CrimsonKero wrote:
At 2/18/25 09:37 AM, coolCartz427 wrote:im sorry to bother and keep talking but im just making sure that ppl are still engaged in this cuz i rly want to learn and create in this program. its hard to live life and at the same time think ppl ignore you. this will be the only time i vent i swear on harambe's grave (heh heh he's a monke)
but thx to the ppl who are coming here and teaching me! i rly appretiate it and i hope to do more with yall :P

Anyway, here's the raw file (from the image you couldn't see)
https://www.newgrounds.com/dump/item/0a5fa4ee6488a4d8c95fffecd522d800

oh alright so is this just an example for me to use on my own pacman project? just kinda confused. as if im not that enough lol

Read the comments and compare to your own project.

already im seeing the improvements. its looks a lot cleaner. i really have to thank you its great getting help. u made this?


Yes, in half an hour, using only your code as reference.


Remember to display the "cosmetic" costumes AFTER all the collision checks are made.


CS - Musician, animator, and nostalgia enthusiast since 2020.


- they/she🏳️‍⚧️

- My voice sucks


At 2/18/25 12:00 PM, CrimsonKero wrote:
At 2/18/25 11:59 AM, coolCartz427 wrote:
At 2/18/25 11:47 AM, CrimsonKero wrote:
At 2/18/25 11:35 AM, coolCartz427 wrote:
At 2/18/25 10:58 AM, CrimsonKero wrote:
At 2/18/25 09:37 AM, coolCartz427 wrote:im sorry to bother and keep talking but im just making sure that ppl are still engaged in this cuz i rly want to learn and create in this program. its hard to live life and at the same time think ppl ignore you. this will be the only time i vent i swear on harambe's grave (heh heh he's a monke)
but thx to the ppl who are coming here and teaching me! i rly appretiate it and i hope to do more with yall :P

Anyway, here's the raw file (from the image you couldn't see)
https://www.newgrounds.com/dump/item/0a5fa4ee6488a4d8c95fffecd522d800

oh alright so is this just an example for me to use on my own pacman project? just kinda confused. as if im not that enough lol

Read the comments and compare to your own project.

already im seeing the improvements. its looks a lot cleaner. i really have to thank you its great getting help. u made this?

Yes, in half an hour, using only your code as reference.

Remember to display the "cosmetic" costumes AFTER all the collision checks are made.


ok im sorry that im back yet again. i somewhat put the code from yours into mine and the movment is good pretty much like he doesnt twitch when touching a wall, but im having trouble with costumes and sometimes getting stuck. just tell me whats wrong and ill fix it. i wanna do this by myself :]


(and i just figured out i cant use the dump. aw man.)

iu_1354637_19930319.pngiu_1354638_19930319.png


At 2/18/25 12:28 PM, coolCartz427 wrote:
At 2/18/25 12:00 PM, CrimsonKero wrote:
At 2/18/25 11:59 AM, coolCartz427 wrote:
At 2/18/25 11:47 AM, CrimsonKero wrote:
At 2/18/25 11:35 AM, coolCartz427 wrote:
At 2/18/25 10:58 AM, CrimsonKero wrote:
At 2/18/25 09:37 AM, coolCartz427 wrote:im sorry to bother and keep talking but im just making sure that ppl are still engaged in this cuz i rly want to learn and create in this program. its hard to live life and at the same time think ppl ignore you. this will be the only time i vent i swear on harambe's grave (heh heh he's a monke)
but thx to the ppl who are coming here and teaching me! i rly appretiate it and i hope to do more with yall :P

Anyway, here's the raw file (from the image you couldn't see)
https://www.newgrounds.com/dump/item/0a5fa4ee6488a4d8c95fffecd522d800

oh alright so is this just an example for me to use on my own pacman project? just kinda confused. as if im not that enough lol

Read the comments and compare to your own project.

already im seeing the improvements. its looks a lot cleaner. i really have to thank you its great getting help. u made this?

Yes, in half an hour, using only your code as reference.

Remember to display the "cosmetic" costumes AFTER all the collision checks are made.

ok im sorry that im back yet again. i somewhat put the code from yours into mine and the movment is good pretty much like he doesnt twitch when touching a wall, but im having trouble with costumes and sometimes getting stuck. just tell me whats wrong and ill fix it. i wanna do this by myself :]

(and i just figured out i cant use the dump. aw man.)


My version is dependent on the costume name being the way it is.

The code says "switch costume to join(P) (variable)", so your costumes need to be named P0, P1, P2, P3 and P4, for it to work.


Furthermore, the costume variable also animates the death sprite, so animate Pacman dying with 11 extra frames going up to 15. My project should contain the exact graphics for reference.



CS - Musician, animator, and nostalgia enthusiast since 2020.


- they/she🏳️‍⚧️

- My voice sucks


At 2/18/25 12:45 PM, CrimsonKero wrote:
At 2/18/25 12:28 PM, coolCartz427 wrote:
At 2/18/25 12:00 PM, CrimsonKero wrote:
At 2/18/25 11:59 AM, coolCartz427 wrote:
At 2/18/25 11:47 AM, CrimsonKero wrote:
At 2/18/25 11:35 AM, coolCartz427 wrote:
At 2/18/25 10:58 AM, CrimsonKero wrote:
At 2/18/25 09:37 AM, coolCartz427 wrote:im sorry to bother and keep talking but im just making sure that ppl are still engaged in this cuz i rly want to learn and create in this program. its hard to live life and at the same time think ppl ignore you. this will be the only time i vent i swear on harambe's grave (heh heh he's a monke)
but thx to the ppl who are coming here and teaching me! i rly appretiate it and i hope to do more with yall :P

Anyway, here's the raw file (from the image you couldn't see)
https://www.newgrounds.com/dump/item/0a5fa4ee6488a4d8c95fffecd522d800

oh alright so is this just an example for me to use on my own pacman project? just kinda confused. as if im not that enough lol

Read the comments and compare to your own project.

already im seeing the improvements. its looks a lot cleaner. i really have to thank you its great getting help. u made this?

Yes, in half an hour, using only your code as reference.

Remember to display the "cosmetic" costumes AFTER all the collision checks are made.

ok im sorry that im back yet again. i somewhat put the code from yours into mine and the movment is good pretty much like he doesnt twitch when touching a wall, but im having trouble with costumes and sometimes getting stuck. just tell me whats wrong and ill fix it. i wanna do this by myself :]

(and i just figured out i cant use the dump. aw man.)

My version is dependent on the costume name being the way it is.
The code says "switch costume to join(P) (variable)", so your costumes need to be named P0, P1, P2, P3 and P4, for it to work.

Furthermore, the costume variable also animates the death sprite, so animate Pacman dying with 11 extra frames going up to 15. My project should contain the exact graphics for reference.


omg thx for the dump access! so btw i changed the costumes to P_ and it now does show the pacman frames which is sweet. however the purple hit box still shows up and pac is still openign and closing his mouth when against the wall so ill send you the project zip and thatll make it a lot easier.


At 2/18/25 02:51 PM, coolCartz427 wrote:
At 2/18/25 12:45 PM, CrimsonKero wrote:
At 2/18/25 12:28 PM, coolCartz427 wrote:
At 2/18/25 12:00 PM, CrimsonKero wrote:
At 2/18/25 11:59 AM, coolCartz427 wrote:
At 2/18/25 11:47 AM, CrimsonKero wrote:
At 2/18/25 11:35 AM, coolCartz427 wrote:
At 2/18/25 10:58 AM, CrimsonKero wrote:
At 2/18/25 09:37 AM, coolCartz427 wrote:im sorry to bother and keep talking but im just making sure that ppl are still engaged in this cuz i rly want to learn and create in this program. its hard to live life and at the same time think ppl ignore you. this will be the only time i vent i swear on harambe's grave (heh heh he's a monke)
but thx to the ppl who are coming here and teaching me! i rly appretiate it and i hope to do more with yall :P

Anyway, here's the raw file (from the image you couldn't see)
https://www.newgrounds.com/dump/item/0a5fa4ee6488a4d8c95fffecd522d800

oh alright so is this just an example for me to use on my own pacman project? just kinda confused. as if im not that enough lol

Read the comments and compare to your own project.

already im seeing the improvements. its looks a lot cleaner. i really have to thank you its great getting help. u made this?

Yes, in half an hour, using only your code as reference.

Remember to display the "cosmetic" costumes AFTER all the collision checks are made.

ok im sorry that im back yet again. i somewhat put the code from yours into mine and the movment is good pretty much like he doesnt twitch when touching a wall, but im having trouble with costumes and sometimes getting stuck. just tell me whats wrong and ill fix it. i wanna do this by myself :]

(and i just figured out i cant use the dump. aw man.)

My version is dependent on the costume name being the way it is.
The code says "switch costume to join(P) (variable)", so your costumes need to be named P0, P1, P2, P3 and P4, for it to work.

Furthermore, the costume variable also animates the death sprite, so animate Pacman dying with 11 extra frames going up to 15. My project should contain the exact graphics for reference.

omg thx for the dump access! so btw i changed the costumes to P_ and it now does show the pacman frames which is sweet. however the purple hit box still shows up and pac is still openign and closing his mouth when against the wall so ill send you the project zip and thatll make it a lot easier.


nvm im confues as hell. i feel too needy with this stuff but i dont want to be. its hard to feel like ur so unintelligent or stupid. idk if i can still do the pacman project or start with something more easier.


At 2/18/25 02:57 PM, coolCartz427 wrote:
At 2/18/25 02:51 PM, coolCartz427 wrote:
At 2/18/25 12:45 PM, CrimsonKero wrote:
At 2/18/25 12:28 PM, coolCartz427 wrote:
At 2/18/25 12:00 PM, CrimsonKero wrote:
At 2/18/25 11:59 AM, coolCartz427 wrote:
At 2/18/25 11:47 AM, CrimsonKero wrote:
At 2/18/25 11:35 AM, coolCartz427 wrote:
At 2/18/25 10:58 AM, CrimsonKero wrote:
At 2/18/25 09:37 AM, coolCartz427 wrote:im sorry to bother and keep talking but im just making sure that ppl are still engaged in this cuz i rly want to learn and create in this program. its hard to live life and at the same time think ppl ignore you. this will be the only time i vent i swear on harambe's grave (heh heh he's a monke)
but thx to the ppl who are coming here and teaching me! i rly appretiate it and i hope to do more with yall :P

Anyway, here's the raw file (from the image you couldn't see)
https://www.newgrounds.com/dump/item/0a5fa4ee6488a4d8c95fffecd522d800

oh alright so is this just an example for me to use on my own pacman project? just kinda confused. as if im not that enough lol

Read the comments and compare to your own project.

already im seeing the improvements. its looks a lot cleaner. i really have to thank you its great getting help. u made this?

Yes, in half an hour, using only your code as reference.

Remember to display the "cosmetic" costumes AFTER all the collision checks are made.

ok im sorry that im back yet again. i somewhat put the code from yours into mine and the movment is good pretty much like he doesnt twitch when touching a wall, but im having trouble with costumes and sometimes getting stuck. just tell me whats wrong and ill fix it. i wanna do this by myself :]

(and i just figured out i cant use the dump. aw man.)

My version is dependent on the costume name being the way it is.
The code says "switch costume to join(P) (variable)", so your costumes need to be named P0, P1, P2, P3 and P4, for it to work.

Furthermore, the costume variable also animates the death sprite, so animate Pacman dying with 11 extra frames going up to 15. My project should contain the exact graphics for reference.

omg thx for the dump access! so btw i changed the costumes to P_ and it now does show the pacman frames which is sweet. however the purple hit box still shows up and pac is still openign and closing his mouth when against the wall so ill send you the project zip and thatll make it a lot easier.

nvm im confues as hell. i feel too needy with this stuff but i dont want to be. its hard to feel like ur so unintelligent or stupid. idk if i can still do the pacman project or start with something more easier.


it is crucial that you develop the following skills:


  1. follow exact behavior of a piece of code step by step during execution using your brain or pen & paper
  2. calculate exact outcome of a piece of code using your brain or pen & paper
  3. compare the behavior of two codes (e.g. two alternatives, or old version vs. new version)


exactness. never guess. these three skills must be developed mostly unassisted. you need to be completely independent from explanations from AI or from experts. you need to conceive explanations yourself. a teacher is only helpful if Socratic method is applied (but in lack of thereof one you can apply it yourself on yourself).


set apart substantial time to analyze your code and develop a complete picture of the entire program


if you applied the advice of people blindly, you did it wrong. so keep this in mind: every time you receive help, do the following:


  1. determine exactly the faults of the current implementation using your brain
  2. determine exactly the differences between current and suggested implementation (using your brain)
  3. take time to understand completely every new construct you face (reading lots of documentation etc.)


when you are learning, most time needs to be spent studying and analyzing and less coding or asking for help. but keep asking for help, technology is full of perils and traps and dead ends and red herrings.


and when you face difficulties, do ask for help, but before doing so, try to figure out the root cause of the problem, hypothesize fixes, make experiments etc.


p.s.: regarding the thing that blocks pictures: that's okay, maybe that's more healthy in the current era, and you are forced to read more anyway, which is again healthy. always trust your parents. always trust their decisions and respect them. always remember that they are your only real reliable friends in the very long run


</lecture>


O prudente varão há de ser mudo,

Que é melhor neste mundo, mar de enganos,

Ser louco c’os demais, que só, sisudo


At 2/18/25 03:16 PM, detergent1 wrote:
At 2/18/25 02:57 PM, coolCartz427 wrote:
At 2/18/25 02:51 PM, coolCartz427 wrote:
At 2/18/25 12:45 PM, CrimsonKero wrote:
At 2/18/25 12:28 PM, coolCartz427 wrote:
At 2/18/25 12:00 PM, CrimsonKero wrote:
At 2/18/25 11:59 AM, coolCartz427 wrote:
At 2/18/25 11:47 AM, CrimsonKero wrote:
At 2/18/25 11:35 AM, coolCartz427 wrote:
At 2/18/25 10:58 AM, CrimsonKero wrote:
At 2/18/25 09:37 AM, coolCartz427 wrote:im sorry to bother and keep talking but im just making sure that ppl are still engaged in this cuz i rly want to learn and create in this program. its hard to live life and at the same time think ppl ignore you. this will be the only time i vent i swear on harambe's grave (heh heh he's a monke)
but thx to the ppl who are coming here and teaching me! i rly appretiate it and i hope to do more with yall :P

Anyway, here's the raw file (from the image you couldn't see)
https://www.newgrounds.com/dump/item/0a5fa4ee6488a4d8c95fffecd522d800

oh alright so is this just an example for me to use on my own pacman project? just kinda confused. as if im not that enough lol

Read the comments and compare to your own project.

already im seeing the improvements. its looks a lot cleaner. i really have to thank you its great getting help. u made this?

Yes, in half an hour, using only your code as reference.

Remember to display the "cosmetic" costumes AFTER all the collision checks are made.

ok im sorry that im back yet again. i somewhat put the code from yours into mine and the movment is good pretty much like he doesnt twitch when touching a wall, but im having trouble with costumes and sometimes getting stuck. just tell me whats wrong and ill fix it. i wanna do this by myself :]

(and i just figured out i cant use the dump. aw man.)

My version is dependent on the costume name being the way it is.
The code says "switch costume to join(P) (variable)", so your costumes need to be named P0, P1, P2, P3 and P4, for it to work.

Furthermore, the costume variable also animates the death sprite, so animate Pacman dying with 11 extra frames going up to 15. My project should contain the exact graphics for reference.

omg thx for the dump access! so btw i changed the costumes to P_ and it now does show the pacman frames which is sweet. however the purple hit box still shows up and pac is still openign and closing his mouth when against the wall so ill send you the project zip and thatll make it a lot easier.

nvm im confues as hell. i feel too needy with this stuff but i dont want to be. its hard to feel like ur so unintelligent or stupid. idk if i can still do the pacman project or start with something more easier.

it is crucial that you develop the following skills:


exactness. never guess. these three skills must be developed mostly unassisted. you need to be completely independent from explanations from AI or from experts. you need to conceive explanations yourself. a teacher is only helpful if Socratic method is applied (but in lack of thereof one you can apply it yourself on yourself).

set apart substantial time to analyze your code and develop a complete picture of the entire program

if you applied the advice of people blindly, you did it wrong. so keep this in mind: every time you receive help, do the following:


when you are learning, most time needs to be spent studying and analyzing and less coding or asking for help. but keep asking for help, technology is full of perils and traps and dead ends and red herrings.

and when you face difficulties, do ask for help, but before doing so, try to figure out the root cause of the problem, hypothesize fixes, make experiments etc.

p.s.: regarding the thing that blocks pictures: that's okay, maybe that's more healthy in the current era, and you are forced to read more anyway, which is again healthy. always trust your parents. always trust their decisions and respect them. always remember that they are your only real reliable friends in the very long run

</lecture>


are just giving me what chat gpt said to you orrrr what? i mean if this is really u im sorry but it seems off kinda.