Snowball portals
14 posts • Page 1 of 1
Snowball portals
Ok, I've done with portals
At this point only simple small geometries can pass through it.
Happy new year!
I hope you will enjoy playing my x-mas portals game
p.s. I'll try to explain how everything works here, if someone ask...
At this point only simple small geometries can pass through it.
Happy new year!
I hope you will enjoy playing my x-mas portals game
p.s. I'll try to explain how everything works here, if someone ask...
Dream of Algodoo as game development engine...
-

Kilinich - [Best bug reporter 2010]
- Posts: 2098
- Joined: Mon Aug 31, 2009 8:27 pm
- Location: South Russia
Re: Snowball portals
kilebantick wrote:I"m asking. How
Did you pass this level? How did you solve each puzzle?
Dream of Algodoo as game development engine...
-

Kilinich - [Best bug reporter 2010]
- Posts: 2098
- Joined: Mon Aug 31, 2009 8:27 pm
- Location: South Russia
Re: Snowball portals
The last part was hard. 
Very good game though, very creative.
Very good game though, very creative.
Millions of voices suddenly cried out in terror, and were suddenly silenced. Something terrible has happened.
-

RicH - [Funniest Person 2010]
- Posts: 2043
- Joined: Tue Sep 01, 2009 9:01 am
Re: Snowball portals
RicH wrote:The last part was hard.
Very good game though, very creative.
Yea, it should be hard, I've kill few hours of testing...
Dream of Algodoo as game development engine...
-

Kilinich - [Best bug reporter 2010]
- Posts: 2098
- Joined: Mon Aug 31, 2009 8:27 pm
- Location: South Russia
Re: Snowball portals
Нескромный вопрос а на какой стадии сча продолжение, и где это будет? фабрика грушек санты? 
- MblK1
- Posts: 8
- Joined: Tue Dec 29, 2009 3:57 pm
Re: Snowball portals
MblK1 wrote:Нескромный вопрос а на какой стадии сча продолжение, и где это будет? фабрика грушек санты?
(He ask about second episode and details)
I don't really think of location, I'm consider on interesting, more complex puzzles and new stuff that can teleports...
Dream of Algodoo as game development engine...
-

Kilinich - [Best bug reporter 2010]
- Posts: 2098
- Joined: Mon Aug 31, 2009 8:27 pm
- Location: South Russia
Re: Snowball portals
Kilinich wrote:kilebantick wrote:I"m asking. How
Did you pass this level? How did you solve each puzzle?
I think he was asking how everything works.
TheWinkits wrote:They both looks of cuking amazing
-

Chronos - [Most Active Member 2010]
- Posts: 4457
- Joined: Mon Aug 31, 2009 6:00 pm
- Location: Californania
Re: Snowball portals
Chronos wrote:Kilinich wrote:kilebantick wrote:I"m asking. How
Did you pass this level? How did you solve each puzzle?
I think he was asking how everything works.
ok here we go:
1) Portals itself is only graphics (small circle with attached laser), no math in there. Just coordinates of blue/orange portal and that's all. Portals sets by two functions: scene.my.newBP(pos,angle) and scene.my.newBP(pos,angle). Previous portal will be killed automatically. Coordinates stored in scene.my.BPpos/scene.my.OPpos variables.
2) All job do snowball itself. First - its a geometry with small hole in the middle where laser is hitting and calculating velocity/pos. Snowballs can be spawned by scene.my.newSB(pos,vel,ttl) function where ttl is max teleportation count. When snowball collides with something it check if object is portal-capable wall and is some portal within range. If portal is near it kills itself (call scene.my.newSplash function) and spawn new snowball with transformed pos/vel and ttl-1. If no portal - just splash.
Dream of Algodoo as game development engine...
-

Kilinich - [Best bug reporter 2010]
- Posts: 2098
- Joined: Mon Aug 31, 2009 8:27 pm
- Location: South Russia
Re: Snowball portals
I've got an idea for the next episode - you could have 2 portals!!
so that the snowball going in would be cloned and that would give a lot of different scenarios that you could do with it!!
btw - 10/10 - best scene EVER!!

btw - 10/10 - best scene EVER!!
<-- Made with GIMP-

blahblah200 - Posts: 61
- Joined: Tue Sep 01, 2009 11:33 am
- Location: Somewhere over the rainbow...
Re: Snowball portals
it's impossible, and you can see it right off at the same portal level 2 you're talking about
.
as you can see, as the portal gun spawns a new portal, it erases the other one. if that didn't happen, then he would just jump off that high platform and grab the portal gun faster.
as you can see, as the portal gun spawns a new portal, it erases the other one. if that didn't happen, then he would just jump off that high platform and grab the portal gun faster.
Jrv wrote:TC42 wrote:Quite honestly, I didn't think anyone on 4chan has that good a use of grammar, spelling, usage, mechanics, ect.
But I've never been there, so I may be wrong.
GTFO newfgt
-

RA2lover - Posts: 607
- Joined: Mon Aug 31, 2009 8:43 pm
- Location: Brazil
Re: Snowball portals
RA2lover wrote:it's impossible, and you can see it right off at the same portal level 2 you're talking aboutas you can see, as the portal gun spawns a new portal, it erases the other one. if that didn't happen, then he would just jump off that high platform and grab the portal gun faster.
Well, nothing is impossible
Dream of Algodoo as game development engine...
-

Kilinich - [Best bug reporter 2010]
- Posts: 2098
- Joined: Mon Aug 31, 2009 8:27 pm
- Location: South Russia
Re: Snowball portals
What if you've got dynamically generated objects passing through the portal? It sure as hell isn't going to work with them the way it is right now! 
There are two apporaches: one being making the portals entirely independent from the objects passing through them, which is probably the best way to do it but the most difficult; and having a big of code on every object that sends it's data to the portal it just collided with and hen having the portal send that data to the other portal where the other portal recreates the object.
I propose the first because it's the best way to do things. You do it right that way and anybody can add the two portals and make it work, no Thyme knowledge required.
I would go about it by trying to figure out a method to get all the location/rotation/geom info from a group of connected objects. If that can't be done, then get all the data for objects within a certain space and have each portal be a door into a small box where the user hits a button and all the content of the box is flushed to the other box in the other portal. you COULD do this with a boxcollider of zero density that gets all the data for objects hitting it and that's the data you send, or: you could do something I have no idea of how to do and get all the data for objects within certain location limits. If ou can do this you ought to be able to get info for connected bodies.
I don't even think the connected bodies method will work at all, because how do you get it to send all the data correctly without a little jump when you teleport?
So, this might not work with existing stuff if you do it the right way. heck, it might not even work if you did it the bad way to achieve the same result!
There are two apporaches: one being making the portals entirely independent from the objects passing through them, which is probably the best way to do it but the most difficult; and having a big of code on every object that sends it's data to the portal it just collided with and hen having the portal send that data to the other portal where the other portal recreates the object.
I propose the first because it's the best way to do things. You do it right that way and anybody can add the two portals and make it work, no Thyme knowledge required.
I would go about it by trying to figure out a method to get all the location/rotation/geom info from a group of connected objects. If that can't be done, then get all the data for objects within a certain space and have each portal be a door into a small box where the user hits a button and all the content of the box is flushed to the other box in the other portal. you COULD do this with a boxcollider of zero density that gets all the data for objects hitting it and that's the data you send, or: you could do something I have no idea of how to do and get all the data for objects within certain location limits. If ou can do this you ought to be able to get info for connected bodies.
I don't even think the connected bodies method will work at all, because how do you get it to send all the data correctly without a little jump when you teleport?
So, this might not work with existing stuff if you do it the right way. heck, it might not even work if you did it the bad way to achieve the same result!
.. ,__,_____
. / __.==--" - - - - - - - - ""
./#(-'
.`-' From http://www.ascii-art.de/. Modded by me to work in Arial.
. / __.==--" - - - - - - - - ""
./#(-'
.`-' From http://www.ascii-art.de/. Modded by me to work in Arial.

a Mammoth wrote:be boring and interesting.
I didn't know you could go up 3.1.3! Thanks Mystery person!Mystery wrote:If you were jailbreaker you shouldn't have when't up the 3.1.3
-

Dakta - Posts: 417
- Joined: Sat Sep 12, 2009 4:36 pm
Re: Snowball portals
WOW.
i wouldnt be surprised if valve tied to hire you...
i wouldnt be surprised if valve tied to hire you...
-

Tang3rine - Posts: 33
- Joined: Mon Aug 31, 2009 8:41 pm
14 posts • Page 1 of 1
Who is online
Users browsing this forum: No registered users and 5 guests





