Bug in my game! Need help!


KierhamSoftware 2021-02-18 19:18 (Edited)

Bug: you can walk through certain corners (specifically the ones you can walk into while moving right). The bug is showed in the picture of the .nx file.
NOTE: The problem is fixed! Thanks Dan!

Rpg.nx | Open in app
2021-02-18 19:18

CubicleHead 2021-02-18 19:26

What does INC and DEC do?

CubicleHead 2021-02-18 19:26

Game looks cool btw

KierhamSoftware 2021-02-18 19:27

INC increases a value by 1, DEC decreases a value by 1.

CubicleHead 2021-02-18 19:28

That makes sense :)

Dan 2021-02-18 20:51 (Edited)

Hi, if you want to search for a solution on your own, then open the Char designer, select the sprite number 063,
draw a white dot in the top left corner then, in the source code, add this line

sprite 63,x,y,63

just above the

The white dot indicates where your sprite can go. It is the 'point of collision' with the map.

I'v added the dot to the attached file.

Rpg.nx | Open in app
2021-02-18 20:51

KierhamSoftware 2021-02-18 21:02

That didn’t fix the issue

KierhamSoftware 2021-02-18 21:03

Oh never mind I get it

Dan 2021-02-18 21:04 (Edited)

Yes it didn't, but: it points out why the issue comes up.
You'll need to add another check for collision. I mean another point.

Dan 2021-02-18 21:07


KierhamSoftware 2021-02-18 21:20

Thanks! I fixed it!

CubicleHead 2021-02-20 01:52

When might this cool looking game be published? ',:D

Log in to reply.