Phoenixbowman's Recent Forum Activity

  • http://imgur.com/a/Q0Ebr

    I downloaded the .capx for an 8-directional joystick. I put in my own objects of course but the code is identical, and Touch is set to accept the Mouse, but when I click and try to drag the joystick in my game it doesn't move. The names are different but the code of Touch and move is the same

    It's the "Revision with 8dir and using only the touch object with "Use mouse input" set to yes."

    I'm not sure what i'm doing wrong, sorry. I did the code exactly the same but the joystick in my game won't move. Sorry.

  • FIxed the "Drifting", I set Max speed, acceleration, and deceleration to the same number.

  • FIxed the "Drifting", I set Max speed, acceleration, and deceleration to the same number.

  • Sorry I just found this, sorry to bother you with all of those questions.

    I got the 8-direction .capx here by Kyatric

    "Thu Apr 26, 2012 9:22 am

    Revision with 8dir and using only the touch object with "Use mouse input" set to yes.

    Still does the job "

    I tweaked it. I set speed to 0 when not being touched, but the object will sometimes "drift" even when the joystick isn't being touched.

  • Sorry I just found this, sorry to bother you with all of those questions.

    I got the 8-direction .capx here by Kyatric

    "Thu Apr 26, 2012 9:22 am

    Revision with 8dir and using only the touch object with "Use mouse input" set to yes.

    Still does the job "

    I tweaked it. I set speed to 0 when not being touched, but the object will sometimes "drift" even when the joystick isn't being touched.

  • I got the 8-direction .capx but the joystick only makes the object move in 4 directions. I'm confused it says 8-direction, but i tried moving the joystick diagonally but the object won't move diagonally.

    Never-mind, I got it! It works in all 8. I added code so when the joystick isn't being touched set speed to 0, but the object "drifts". Like the joystick isn't being touched but the object drifts ever so slightly.

  • You could do it with a touch phone by creating a trigger sprite for each direction

    You would need 8 sprites one for each direction put in the shape of the joystick controls on screen and when that sprite is tap held it would act the same as a key press.

    This an on-screen joystick that I was talking about: http://s349.photobucket.com/user/MackMa ... k.jpg.html

    Where you move the circle that's on the inside and the sprite moves as you move the circle that's on the inside. Sorry if i wasn't clear before, that's my bad. So its pressing and holding the inside circle to move it around. And the direction the inside circle is being moved around determines where the sprite goes.

    But without any sort of rotation. Is it possible to integrate 8-direction, custom movement, or pathfinding, whatever works, with a joystick like that one in the image? So the sprite can be moved in 8-directions without rotating as its moved? No acceleration or deceleration. As soon as the joystick is no longer being held down, the sprite stops.

  • The game is going to be on mobile phones though, so no arrow keys or letter keys for movement, that's why I mentioned integrating 8-direction movement with on an on-screen sprite joystick, not keyboard arrow keys or keyboard letter keys.

    Unless the only way to do 8-direction movement with an on-screen sprite joystick is with custom movement or pathfinding.

  • The Sprite isn't animated when standing still though. Has to be animated when moving, but not when standing still. Like if the sprite isn't moving at all, no animation.

    Also I'm new to joysticks and 8-direction movement, sorry. Not an actual joystick, but a joystick on the actual game screen. How would I code into an on-screen interactive joystick 8-direction movement? I tried 8-direction with arrow keys, on screen interactive sprites, but the angles were weird. Depending on where the code for movement was, the sprite would go at different angles or not move at all.

    So i have no idea how to integrate 8 direction movement into an onscreen interactive sprite joystick.

  • Is it possible to integrate 8-directional movement with a joystick? Like a sprite on screen joystick, not a plugged in game pad. I'm trying to get a sprite to move in 8 different directions, but no rotation. Like the sprite moves but its angle of orientation stays the same. Would a joystick work like that? Able to move a sprite in 8 different directions but keep its angle the same? Like 0 speed when not being moved, if moved at a constant speed, no acceleration and deceleration.

    Also how do you make a sprite "walk"? I have a sprite with two frames. When a sprite is moving automatically it alternates between the two frames. Is it possible to make it so when the player moves the sprite, instead of it moving automatically, the two frames alternate. Animations work for automatic movement, but not for player-controlled movement. Animation works perfectly with automated movement, but the same setup for player movement doesn't work, even though the sprite is being moved.

  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
  • Basically, moving with 8 directional movement with a joystick, but the sprite stays upright (angle of orientation doesn't change.)

  • When you can please let me know about integrating 8-directional movement, without the Sprite's angle of orientation changing, into a joystick. The only game I've done involved tapping sprites so I have no idea how to do it with a joystick and 8-directions, sorry.

    Unless Joystick cant use 8-directions, and arrow keys are the only way to go for 8-directions?

Phoenixbowman's avatar

Phoenixbowman

Member since 18 Sep, 2015

None one is following Phoenixbowman yet!

Trophy Case

  • 9-Year Club
  • Email Verified

Progress

10/44
How to earn trophies