Discuss Scratch

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:
  • 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.
That's currently my only problem. I'll make some more threads if I ever need help 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.
mrcreatorluigi
Scratcher
1000+ posts

Collision problems with RPG game

Thingied wrote:

Reworked the movement.
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.
Do you know what the custom block hat scripts are? It still isn't working for me.
Thingied
Scratcher
1000+ posts

Collision problems with RPG game

mrcreatorluigi wrote:

Thingied wrote:

Reworked the movement.
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.
Do you know what the custom block hat scripts are? It still isn't working for me.
All of the change speed variables stuff.
mrcreatorluigi
Scratcher
1000+ posts

Collision problems with RPG game

Thingied wrote:

mrcreatorluigi wrote:

Thingied wrote:

Reworked the movement.
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.
Do you know what the custom block hat scripts are? It still isn't working for me.
All of the change speed variables stuff.
-snip-
still isnt working, i think i removed a custom block earlier but idk

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

mrcreatorluigi wrote:

still isnt working, i think i removed a custom block earlier but idk

basically i just get stuck in the same spot now

Forgot to mention to change the set _sc to change ;-;
mrcreatorluigi
Scratcher
1000+ posts

Collision problems with RPG game

Thingied wrote:

mrcreatorluigi wrote:

still isnt working, i think i removed a custom block earlier but idk

basically i just get stuck in the same spot now

Forgot to mention to change the set _sc to change ;-;
xd its okay, its now working. thanks!

Powered by DjangoBB