Smooth portal crossing?

Questions about the LÖVE API, installing LÖVE and other support related questions go here.
Forum rules
Before you make a thread asking for help, read this.
Post Reply
User avatar
Мэтю
Prole
Posts: 31
Joined: Mon Jan 06, 2014 1:24 pm
Location: Espírito Santo, Brazil
Contact:

Smooth portal crossing?

Post by Мэтю » Tue Mar 28, 2017 2:18 pm

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
World needs love.

Lucyy
Prole
Posts: 42
Joined: Thu Oct 15, 2015 6:57 am
Contact:

Re: Smooth portal crossing?

Post by Lucyy » Tue Mar 28, 2017 3:34 pm

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.

User avatar
zorg
Party member
Posts: 2868
Joined: Thu Dec 13, 2012 2:55 pm
Location: Absurdistan, Hungary
Contact:

Re: Smooth portal crossing?

Post by zorg » Tue Mar 28, 2017 5:03 pm

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.
Me and my stuff :3True Neutral Aspirant. Why, yes, i do indeed enjoy sarcastically correcting others when they make the most blatant of spelling mistakes. No bullying or trolling the innocent tho.

User avatar
Мэтю
Prole
Posts: 31
Joined: Mon Jan 06, 2014 1:24 pm
Location: Espírito Santo, Brazil
Contact:

Re: Smooth portal crossing?

Post by Мэтю » Fri Apr 14, 2017 3:04 pm

Sure, sorry for the very long time to reply. Thank you c:
World needs love.

User avatar
HugoBDesigner
Party member
Posts: 403
Joined: Mon Feb 24, 2014 6:54 pm
Location: Above the Pocket Dimension
Contact:

Re: Smooth portal crossing?

Post by HugoBDesigner » Sat Apr 15, 2017 11:19 am

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.
HugoBDesigner - my Twitter
HugoBDesigner - my Blog

Post Reply

Who is online

Users browsing this forum: No registered users and 39 guests