|
|
|
3 registered members (Yopachi, Ayumi, 1 invisible),
3,976
guests, and 7
spiders. |
|
Key:
Admin,
Global Mod,
Mod
|
|
|
Re: Making the window "wrap" (w/ Physics entities)
[Re: Zelek]
#204436
04/29/08 09:37
04/29/08 09:37
|
mercuryus
Unregistered
|
mercuryus
Unregistered
|
Set off the objects physical behavior (phent_enable ( entity, var enableEntity );) if it reaches the border. Then replace it (e.g. obj.x-=1000 or obj.x=[new value]). At least switch on the objects physical behavior again.
mercuryus
|
|
|
Re: Making the window "wrap" (w/ Physics entities)
[Re: ]
#204575
04/30/08 01:23
04/30/08 01:23
|
Joined: Apr 2004
Posts: 516 USA
Trooper119
User
|
User
Joined: Apr 2004
Posts: 516
USA
|
I believe what mercuryus is trying to say is make the walls passable, and after the ball first enters the (now passable) boundary, make a ball spawn at the other side with the same offset as the ball entering the other side (something like newball.x = rightBound.x + (ball.x-leftBound.x) vise versa with the opposite side)
Now transfer all settings of the first ball to the other (speed, trajectory, ect.) Once the first ball is outside of sight, delete it from the level (you could just say any ball outside a certain area beyond the boundary is to be deleted). Hope this helps
A clever person solves a problem. A wise person avoids it. --Einstein
Currently Codeing: Free Lite-C
|
|
|
|
|
|
|