Author Topic: Adventure Game Controls  (Read 2021 times)

I am having trouble figuring out how I could make Blockland control like Uncharted, Grand Theft Auto: San Andreas & IV, Tomb Raider, etc. I am working on the press A to turn left part, but that is not the final result I want. I want to make the player turn and move left when I hold A and vice versa for holding D. The issue is, rotating the player without rotating the controls; as of now, if I rotate the player to the left, then holding left will make it rotate continuously in a circle.

To be clearer, I want to build a mod that lets Blockland to control like an Adventure game, not an FPS.
« Last Edit: March 10, 2013, 12:27:34 AM by tommybricksetti »

Code: [Select]
package wierdControlScheme
{
    function moveLeft(%tog)
    {
        Parent::moveLeft(%tog);
        turnLeft(%tog);   //Technically turns you left. Not recommended if you are prone to motion sickness.
    }
   
    function moveRight(%tog)
    {
        Parent::moveRight(%tog);
        turnRight(%tog);
    }
};
activatePackage("wierdControlScheme");

This is client-sided. If you want a way to do it server-sidedly, I'm not gonna help you. This control scheme sounds horrifying.

This is client-sided. If you want a way to do it server-sidedly, I'm not gonna help you. This control scheme sounds horrifying.
You're only terrified because you can't read, and misunderstood what I was asking for.

You're only terrified because you can't read, and misunderstood what I was asking for.
Stop asking for help if you are going to be aggressive to people you are asking for help.

Stop asking for help if you are going to be aggressive to people you are asking for help.
I happen not to like Xalos's personality. That has nothing to do with you, and I don't see why you have to defend him. Your post only tells me that you're an aggressive Realist yourself, so you project that on everyone else, religiously.

You are being what is commonly known as a putrid loving cunt. Seriously. Someone helped you and you through stuff at him. Then when someone defended him you through even more stuff at him. You literally just flipped off 2 respected coders trying to help you.

I pray no fool helps you.

whose the other coder :3?

You are being what is commonly known as a putrid loving cunt. Seriously. Someone helped you and you through stuff at him. Then when someone defended him you through even more stuff at him. You literally just flipped off 2 respected coders trying to help you.

I pray no fool helps you.
Why do people, you, come to the coding section if you dont code?

I happen not to like Xalos's personality. That has nothing to do with you, and I don't see why you have to defend him. Your post only tells me that you're an aggressive Realist yourself, so you project that on everyone else, religiously.
You completely misunderstood me there. I told you to stop being pissed off at people trying to help.
(I have no clue where the random "aggressive realist" came from (I'm assuming you pulled it out of your ass), but calm the hell down)
Also to be honest the way you state it is a tad confusing.
Why do people, you, come to the coding section if you dont code?
Perlin Noise is Brian Smith.

You completely misunderstood me there. I told you to stop being pissed off at people trying to help.
(I have no clue where the random "aggressive realist" came from (I'm assuming you pulled it out of your ass), but calm the hell down)
Also to be honest the way you state it is a tad confusing.Perlin Noise is Brian Smith.
Xalos is a Realist. I normally don't mind that, but I'm very sick right now and annoyed. Also, when I get sick or insecure etc. I revert back to being youthful and excited, a regular Social. This involves having no tolerance for Realists. I assumed you were a Realist too, b/c generally it's only Realists who defend other Realists.

I have no idea what this realist and socialist nonsense you're talking about is, but regardless, just get back on topic already.
This control scheme is possible to do in Blockland and makes perfect sense, but you'll have to do a ton of hacky stuff for it.

I have no idea what this realist and socialist nonsense you're talking about is, but regardless, just get back on topic already.
This control scheme is possible to do in Blockland and makes perfect sense, but you'll have to do a ton of hacky stuff for it.
Thank you!

You're only terrified because you can't read

I never said I was terrified. I said the control scheme sounds horrifying. If you want to "make the player turn and move left when I hold A" then what you mean is neither a strafing movement to the left, nor a rotational movement to the left. It means both. At the same time. Which is, technically, what the code I gave you does.

If you want to be an starfish to me because I give you code that works while simultaneously pointing out that I don't want to ram some strange control scheme down the throats of every single person who joins every single server you run this mod on, fine. Just don't expect to get to both do that and have my help in future.

I never said I was terrified. I said the control scheme sounds horrifying. If you want to "make the player turn and move left when I hold A" then what you mean is neither a strafing movement to the left, nor a rotational movement to the left. It means both. At the same time. Which is, technically, what the code I gave you does.

If you want to be an starfish to me because I give you code that works while simultaneously pointing out that I don't want to ram some strange control scheme down the throats of every single person who joins every single server you run this mod on, fine. Just don't expect to get to both do that and have my help in future.

It was pretty obvious what he was trying to say by the games he was referencing. It's a pretty good and widely used control scheme too.

It was pretty obvious what he was trying to say by the games he was referencing. It's a pretty good and widely used control scheme too.

First person games I play: Blockland, Minecraft, World of Warcraft.
Third person games I play: See: First person games I play.


I do not play many games, and am not familiar with the control scheme he is trying to describe.