Page 1 of 1
Collision with actor in Infinite mode
Posted:
Thu May 16, 2013 10:59 am
by lverona
Hey fellas!
I need to make an infinite maze, but it turns out an infinite actor does not interact with any other actor. Is this at all possible somehow?
Re: Collision with actor in Infinite mode
Posted:
Thu May 16, 2013 6:46 pm
by skydereign
You would have to use CollisionFree or getactor to simulate the collision with the walls.
Re: Collision with actor in Infinite mode
Posted:
Fri May 17, 2013 8:27 am
by lverona
I am using CollisionFree. If I make a maze infinite x or infinite y it works, but as soon as I make it just Infinite, this stops working. Any way to workaround this?
Re: Collision with actor in Infinite mode
Posted:
Fri May 17, 2013 1:13 pm
by Hblade
Clone the maze, have 4 clones and reset their position as you go
To make it appear seamless
Re: Collision with actor in Infinite mode
Posted:
Fri May 17, 2013 2:31 pm
by lverona
Yeah... although that sucks. Why not just allow people to collide with infinite objects?
Re: Collision with actor in Infinite mode
Posted:
Fri May 17, 2013 6:40 pm
by skydereign
lverona wrote:Why not just allow people to collide with infinite objects?
Well, computationally that can be a wild card. Infinite actors would then need to be checked by every actor that can collide, and gE currently uses a pixel perfect check for collisions. While bounding regions can still be used to limit the number of unnecessary checks in single infinite direction cases, things can slow down your game (even more so when using infinite in both axis). Collision checking though is limited to the size of the smaller actor, so it still wouldn't be that bad... until having infinite actors colliding with infinite actors.
Re: Collision with actor in Infinite mode
Posted:
Fri May 17, 2013 7:07 pm
by lverona
Okay, I guess I will have to change the concept of my game then
Re: Collision with actor in Infinite mode
Posted:
Fri May 17, 2013 7:13 pm
by skydereign
lverona wrote:Okay, I guess I will have to change the concept of my game then
Would simulating an infinite maze work?
Re: Collision with actor in Infinite mode
Posted:
Sun May 19, 2013 10:27 am
by lverona
Perhaps. The idea was to create an infinite maze, than in a radius of, say, 1000 pixels (more or less, test this out) put objects that you have to pick up to advance to the next level.
I want to create an "endless game" which would have a gameplay with a single simple goal with lots of variation.
Re: Collision with actor in Infinite mode
Posted:
Sun May 19, 2013 10:55 am
by skydereign
You intended to create the infiniteness of the maze by taking a smaller maze image, and putting it in an infinite actor? If so, you could simulate the same thing by having nine clones, instead of the original one. Have them in rows of three, and when the player passes half way in one of the edges, you can shift the other clones appropriately.
Re: Collision with actor in Infinite mode
Posted:
Mon May 20, 2013 9:54 am
by lverona
I thought about that. It is not a bad idea, but for now I'll try to take advantage of one axis infinity.