Phase limit

Dyhego

Member
I'm trying to put a limit on the stage, but I'm having a hard time making sure that the character doesn't overtake the walls on the stage. How do I make it not to go beyond walls.


Code:
music		data/levels/stage2/stage2.bor
background	data/levels/stage2/back.gif 
panel		data/levels/stage2/floor.gif


direction       right
light  		10   -30
at       	0
settime         0
notime          1
noslow          1
order		a
cameratype 	1

spawn1 79 209
wall 3 233 100 0 107 7 80 115
wall 400 233 0 105 10 120 0 159 <- here is the image wall

 

Attachments

  • Captura de tela 2020-11-14 222342.png
    Captura de tela 2020-11-14 222342.png
    123.7 KB · Views: 4
Agreed with what nsw posted.

Also, if you want others to check if your wall setting is correct, you'd need to attach the whole image of panel used in the level. We can do the measuring from there :)

Another thing is even though the wall is relatively small from attached image, I suggest setting wide value 5th and 6th parameter, something like 500 for both should do :).
 
but does openbor let me create a wall upside down? would the value of 1 have to be negative?

I don't know if you can understand ...
 

Attachments

  • Captura de tela 2020-11-15 131933.png
    Captura de tela 2020-11-15 131933.png
    4.3 KB · Views: 0
Dyhego,

Walls are parallelepipeds... there's no right side up or upside down to speak of. You just place the wall where you want in a level, give it the dimensions you need and that's it. Maybe if you explained what exactly you need the wall to do we could help more.

DC
 
I want my character not to walk on the stage walls. This is the image I'm going to use in the game. When I put the wall on, he keeps walking on it.

wall 3 233 100 0 107 7 80 115 <- left wall, it's ok
wall 590 233 0 105 10 120 500 500 <- right wall, I'm not able to put
 

Attachments

  • floor.gif
    floor.gif
    24.6 KB · Views: 7
Thank you for posting the whole image, now I can set walls myself :)

Mmm... hmmm... based on the image, my wall settings would be these:

Code:
 wall 0 235 -500 -500 100 0 50 5000 # left wall
 wall 608 235 -100 0 500 500 50 5000 # right wall

Your left wall setting is slightly off but right wall one is really way off. Try using my setting and see if it fixes the problem :).
 
Back
Top Bottom