How to make things slowly get faster and move toward an actor
I have a black hole actor that moves around the screen and it picks up pieces of rocks. It's sending its positional information to two attributes, game.blackholeX and game.blackholeY. I would like the rock pieces to slowly get closer to the black hole as soon as it exists on the screen slowly getting faster and faster as they get closer, but when it touches the black hole's edge to immediately get sucked in.
I have it set up so that when they touch the black hole they get sucked in, but the slowly accelerating toward the blackhole isn't really working, the accelerator function is making it go toward the blackhole briefly, but when the black hole moves it doesn't continue accelerating toward it, it just keeps going the direction it went originally; even if I put a timer set to 0 on it.
Any suggestions?
Comments
Nevermind, I was hoping I could do something with magnitude, but I don't really understand it. I figured out a way to fake it with interpolate. It doesn't look exactly like I wanted it to but it's close.
Vote for Nearest Neighbor Scaling option in gamesalad! Let's make our games look truly stunning!