Search found 6 matches

by Selenaut
Tue Jul 30, 2013 9:34 pm
Forum: Support and Development
Topic: Portals and Teleporting the Player
Replies: 6
Views: 5081

Re: Portals and Teleporting the Player

So I've set up a table for my Portal "class" called usrData. However, when I write: function beginCallback(fixture1, fixture2, contact) if fixture1:getUserData().obj == "portal" then --stuff end if fixture2:getUserData().obj == "portal" then --other stuff end end functi...
by Selenaut
Tue Jul 30, 2013 3:08 am
Forum: Support and Development
Topic: Portals and Teleporting the Player
Replies: 6
Views: 5081

Re: Portals and Teleporting the Player

Alright, I have the portal class setup so that its fixture is a sensor. In the callback functions, how do I know which portal it's coming from? At the moment, I have a table of portals, and I don't know how to tell which one was collided with, nor what collided with it. How do I get those? Thanks, S...
by Selenaut
Tue Jul 30, 2013 2:44 am
Forum: Support and Development
Topic: Portals and Teleporting the Player
Replies: 6
Views: 5081

Re: Portals and Teleporting the Player

Hey seanmd, thanks for the reply.

That sounds like it should work. I'll continue posting my progress on getting these portals to work here. Hopefully soon I'll have a quick demo set up so people can check it out.

Thanks again,

Selenaut
by Selenaut
Tue Jul 30, 2013 2:06 am
Forum: Support and Development
Topic: Going forward and backward with a caracter
Replies: 12
Views: 6191

Re: Going forward and backward with a caracter

I don't think rotation would help, as that would make the sprite appear upside-down. Solitaire wants the image to be flipped horizontally.
by Selenaut
Tue Jul 30, 2013 1:59 am
Forum: Support and Development
Topic: [Help needed] Math.atan2()
Replies: 6
Views: 5718

Re: [Help needed] Math.atan2()

I'd bet the Y-movement is inverted, right? The problem is that radians are measured clockwise in LOVE2D (because the origin is in the top left, thus the y-axis is pointing down), so you have to make the angle negative in order to counteract this. Also, seanmd was correct: the second argument should ...
by Selenaut
Tue Jul 30, 2013 1:40 am
Forum: Support and Development
Topic: Portals and Teleporting the Player
Replies: 6
Views: 5081

Portals and Teleporting the Player

Hello, all. This is my first post here, and it's mostly due to the fact that I haven't needed to post a question before. I am working on a game that I have mostly figured out in theory; however, I have run into a problem in implementing these portals. Basically, I want them to work like the ones fro...