Discuss Scratch
- Discussion Forums
- » Help with Scripts
- » Collision problems with RPG game
- mrcreatorluigi
-
Scratcher
1000+ posts
Collision problems with RPG game
https://turbowarp.org/632206715
I'm trying to make a scrolling RPG game engine but I'm having a problem:
I'm trying to make a scrolling RPG game engine but I'm having a problem:
- When you bump into the water, I want it so you are instantly pushed back without problems. But it just looks like I'm glitching and if I use a different key when colliding, I get stuck and have to press the green flag again.
- Thingied
-
Scratcher
1000+ posts
Collision problems with RPG game
Reworked the movement.
Player:

Map:

Before, it was basing it off the direction, which caused it to only do collision for only one axis. Now, in the new one, it checks to velocities instead so it's compatible with any direction changes.
Player:

Map:

Before, it was basing it off the direction, which caused it to only do collision for only one axis. Now, in the new one, it checks to velocities instead so it's compatible with any direction changes.
- mrcreatorluigi
-
Scratcher
1000+ posts
Collision problems with RPG game
Reworked the movement.Do you know what the custom block hat scripts are? It still isn't working for me.
Player:
-snip-
Map:
-snip-
Before, it was basing it off the direction, which caused it to only do collision for only one axis. Now, in the new one, it checks to velocities instead so it's compatible with any direction changes.
- Thingied
-
Scratcher
1000+ posts
Collision problems with RPG game
All of the change speed variables stuff.Reworked the movement.Do you know what the custom block hat scripts are? It still isn't working for me.
Player:
-snip-
Map:
-snip-
Before, it was basing it off the direction, which caused it to only do collision for only one axis. Now, in the new one, it checks to velocities instead so it's compatible with any direction changes.

- mrcreatorluigi
-
Scratcher
1000+ posts
Collision problems with RPG game
still isnt working, i think i removed a custom block earlier but idkAll of the change speed variables stuff.Reworked the movement.Do you know what the custom block hat scripts are? It still isn't working for me.
Player:
-snip-
Map:
-snip-
Before, it was basing it off the direction, which caused it to only do collision for only one axis. Now, in the new one, it checks to velocities instead so it's compatible with any direction changes.
-snip-
basically i just get stuck in the same spot now
Last edited by mrcreatorluigi (Jan. 22, 2022 16:10:32)
- Thingied
-
Scratcher
1000+ posts
Collision problems with RPG game
still isnt working, i think i removed a custom block earlier but idkForgot to mention to change the set _sc to change ;-;
basically i just get stuck in the same spot now

- mrcreatorluigi
-
Scratcher
1000+ posts
Collision problems with RPG game
xd its okay, its now working. thanks!still isnt working, i think i removed a custom block earlier but idkForgot to mention to change the set _sc to change ;-;
basically i just get stuck in the same spot now
- Discussion Forums
- » Help with Scripts
-
» Collision problems with RPG game

