B
Babuchi
Guest
Hi, I have tried to do these sorts of things before, with little success.
As you might have guessed, the game takes place in outer space, although a surreal version of it. Thus, instead of gravity simply pulling objects "down", I'd want a sort that pulls them together--not all; I'd be willing to fudge in that regard, but at least ones that are key to the gameplay. For example, if the player character is right of an object that has a gravitational field, it's pulled left, while if it's to the left of the object with a gravitational field, it's pulled right. Pretty straightforward to describe, but so far not to implement.
I've tried to control for it in the playable character; to the effect that expressions check whether there's an object that's supposed to have gravity nearby, and if so, start moving the player towards the object. Success via this method was mixed at best; sometimes it worked well, but other times it was just bizarre; the character would sometimes be sucked in from far further away than it was supposed to be, and sometimes, for whatever reason, seemed to be repelled from the object. Weird, to say the least.
So what might I have been doing wrong. is there a better way to do these things?
As you might have guessed, the game takes place in outer space, although a surreal version of it. Thus, instead of gravity simply pulling objects "down", I'd want a sort that pulls them together--not all; I'd be willing to fudge in that regard, but at least ones that are key to the gameplay. For example, if the player character is right of an object that has a gravitational field, it's pulled left, while if it's to the left of the object with a gravitational field, it's pulled right. Pretty straightforward to describe, but so far not to implement.
I've tried to control for it in the playable character; to the effect that expressions check whether there's an object that's supposed to have gravity nearby, and if so, start moving the player towards the object. Success via this method was mixed at best; sometimes it worked well, but other times it was just bizarre; the character would sometimes be sucked in from far further away than it was supposed to be, and sometimes, for whatever reason, seemed to be repelled from the object. Weird, to say the least.
So what might I have been doing wrong. is there a better way to do these things?