Impact

This forum is read only and just serves as an archive. If you have any questions, please post them on github.com/phoboslab/impact

1 decade ago by Datamosh

Hello! Any hints about how it should be a box 'pushable' like Sokoban? ig.Entity.COLLIDES.LITE not work as I wish :(

1 decade ago by dominic

From IRC:

[21:59] <domsz> well, in sokoban all the boxes are alligned to the grid
[22:00] <domsz> i think using physics is the wrong approach for a sokoban clone
[22:00] <domsz> it's like building tetris with a physics engine :)
[22:01] <domsz> the best way to do this is probably to move the box entities yourself when the player pushes them
[22:01] <domsz> also the player movement should then be grid based, right?
[22:01] <domsz> so i can only walk from one grid cell to the next
[22:02] <domsz> not stop in between two cells or something
[22:04] <Datamosh_> I understand, they are my first steps in Impact and really do not know how to move smoothly a character within a grid
[22:18] <Datamosh> anyway it seems a bit odd that an entity (LITE & TYPE.B) to be pushed against a wall, go through the player
[22:18] <domsz> yes, totally. the physics in impact are really basic
[22:19] <domsz> if you want to have correct, elaborate physics, try using the box2d plugin
[22:19] <domsz> but again, i don't think that's the way to go for a sokoban clone
[22:19] <domsz> and about smooth movement: try building the game without the smooth movement first
[22:19] <domsz> if it then works, you can always add more eye candy
Page 1 of 1
« first « previous next › last »