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
Smooth portal crossing?
Forum rules
Before you make a thread asking for help, read this.
Before you make a thread asking for help, read this.
Smooth portal crossing?
World needs love.
Re: Smooth portal crossing?
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.
- zorg
- Party member
- Posts: 3465
- Joined: Thu Dec 13, 2012 2:55 pm
- Location: Absurdistan, Hungary
- Contact:
Re: Smooth portal crossing?
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.
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 True 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.
Re: Smooth portal crossing?
Sure, sorry for the very long time to reply. Thank you c:
World needs love.
- HugoBDesigner
- Party member
- Posts: 403
- Joined: Mon Feb 24, 2014 6:54 pm
- Location: Above the Pocket Dimension
- Contact:
Re: Smooth portal crossing?
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.
Who is online
Users browsing this forum: Bing [Bot], Brotein and 4 guests