Page 1 of 1
Smooth portal crossing?
Posted: Tue Mar 28, 2017 2:18 pm
by Мэтю
Hello, I've been a bit out of forums, now I've come back with new ideias. I wanna know if is there a way of a "smooth portal crossing"?
Something like the Mari0, the player doesn't get 'teleported' instantly from a position to another when he touches it. I want it to go smooth from one portal to another
Re: Smooth portal crossing?
Posted: Tue Mar 28, 2017 3:34 pm
by Lucyy
Its pretty similar to screen wrapping, you'll have to draw your player twice, once at the portal you're entering and once at the portal you're coming out of.
Re: Smooth portal crossing?
Posted: Tue Mar 28, 2017 5:03 pm
by zorg
Mari0 is written in Löve, so for it to have smooth portal crossing, it means that there is a way to do it (in Löve; multiple ways even.)
Lucyy's right, that's the simplest way, though you want to use scissors or some other way to clip part of your player, the parts that are "on the other side" of both portals.
Re: Smooth portal crossing?
Posted: Fri Apr 14, 2017 3:04 pm
by Мэтю
Sure, sorry for the very long time to reply. Thank you c:
Re: Smooth portal crossing?
Posted: Sat Apr 15, 2017 11:19 am
by HugoBDesigner
You want to make sure that the player can go halfway into the portal before being teleported. That means that more than half of the player's size must have crossed the boundary, and this should apply to both portals. If you want a dynamic view, you'll probably want to use scissors and draw some things twice, one for each portal.