Collision with actor in Infinite mode

Non-platform specific questions.

Collision with actor in Infinite mode

Postby lverona » Thu May 16, 2013 10:59 am

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?
lverona
 
Posts: 221
Joined: Tue Apr 24, 2012 11:54 am
Score: 1 Give a positive score

Re: Collision with actor in Infinite mode

Postby skydereign » Thu May 16, 2013 6:46 pm

You would have to use CollisionFree or getactor to simulate the collision with the walls.
User avatar
skydereign
 
Posts: 3510
Joined: Mon Jul 28, 2008 8:29 am
Score: 589 Give a positive score

Re: Collision with actor in Infinite mode

Postby lverona » Fri May 17, 2013 8:27 am

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?
lverona
 
Posts: 221
Joined: Tue Apr 24, 2012 11:54 am
Score: 1 Give a positive score

Re: Collision with actor in Infinite mode

Postby Hblade » Fri May 17, 2013 1:13 pm

Clone the maze, have 4 clones and reset their position as you go :) To make it appear seamless
Subscribe to my YouTube? - Yes| No
User avatar
Hblade
 
Posts: 4455
Joined: Fri Dec 08, 2006 11:14 pm
Score: 181 Give a positive score

Re: Collision with actor in Infinite mode

Postby lverona » Fri May 17, 2013 2:31 pm

Yeah... although that sucks. Why not just allow people to collide with infinite objects?
lverona
 
Posts: 221
Joined: Tue Apr 24, 2012 11:54 am
Score: 1 Give a positive score

Re: Collision with actor in Infinite mode

Postby skydereign » Fri May 17, 2013 6:40 pm

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.
User avatar
skydereign
 
Posts: 3510
Joined: Mon Jul 28, 2008 8:29 am
Score: 589 Give a positive score

Re: Collision with actor in Infinite mode

Postby lverona » Fri May 17, 2013 7:07 pm

Okay, I guess I will have to change the concept of my game then :(
lverona
 
Posts: 221
Joined: Tue Apr 24, 2012 11:54 am
Score: 1 Give a positive score

Re: Collision with actor in Infinite mode

Postby skydereign » Fri May 17, 2013 7:13 pm

lverona wrote:Okay, I guess I will have to change the concept of my game then :(

Would simulating an infinite maze work?
User avatar
skydereign
 
Posts: 3510
Joined: Mon Jul 28, 2008 8:29 am
Score: 589 Give a positive score

Re: Collision with actor in Infinite mode

Postby lverona » Sun May 19, 2013 10:27 am

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.
lverona
 
Posts: 221
Joined: Tue Apr 24, 2012 11:54 am
Score: 1 Give a positive score

Re: Collision with actor in Infinite mode

Postby skydereign » Sun May 19, 2013 10:55 am

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.
User avatar
skydereign
 
Posts: 3510
Joined: Mon Jul 28, 2008 8:29 am
Score: 589 Give a positive score

Re: Collision with actor in Infinite mode

Postby lverona » Mon May 20, 2013 9:54 am

I thought about that. It is not a bad idea, but for now I'll try to take advantage of one axis infinity.
lverona
 
Posts: 221
Joined: Tue Apr 24, 2012 11:54 am
Score: 1 Give a positive score


Return to General

Who is online

Users browsing this forum: No registered users and 1 guest

cron