Phoenixbowman's Forum Posts

  • 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.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • 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.

  • 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?

  • Um, how do I upload a picture? It's all of those blue links that say "Help on" something.

  • The only game I've ever done involved tapping sprites, it didn't involve the player actually moving a sprite, that's why I have so many questions.

  • I looked into the 8 direction behavior, but the angles were weird when I used arrow keys, like click arrow key, move in this direction. Depending on what direction i had in the code the sprite would move at different angles.

    These are not the actual numbers, just as an example:

    Like Touch Left at -90 at 100 speed, then touch right at 180 degrees at 100 speed. the sprite would move left with Touch Left and Up with 180 degrees.

    If I then put Touch Right above Touch left in the code, the sprite would move at different angles.

    How would I integrate the 8 directions into your code for a Joystick?

  • Sorry I'm still not sure how to do this. The Sprite has one speed and can move in 8 different directions. Moving the joystick will make the sprite move in one of 8 directions at a constant speed, no acceleration or deceleration.

    I see the code but don't know what a Local Variable is.

  • I have a Developer's License I know about uploading the APK and Alpha/Beta testing. Once I have the APK in Alpha/Beta test, is there a way to test them? or do I have to actually get each achievement to see if they work? Like is there a way to test the achievements in game without actually getting them, and testing the IAP without actually buying anything?

    Some of the point values are really high and some of the time-based achievements are really high too. Is there a way to test them in game? My concern is someone will do what they have to do to get the achievement, but the code wont work and they wont get it.

  • It's basically a person running around. So there is no acceleration, it's one speed and the sprite can move 8 different directions. Like move at one speed in one of 8 directions. Like the sprite is standing still. When the sprite starts moving, it moves at one constant speed, no accelerating or decelerating.

  • Sorry, what's a Local Static Variable? I was looking over the code and I noticed something called local static variable.

    Is a joystick a good idea for a sprite that can't rotate? like the sprite's orientation is 0 degrees, and can't rotate. Imagine a person standing upright and moving at a constant speed in 8 directions depending on where the joystick is being moved.

    Like no acceleration, move joystick, go from 0 to x speed, release joystick, stop. Or would arrow keys work better?

  • Is there a way to test the Cordova IAP without actually buying anything? I know about uploading and putting an APK in to Alpha or Beta testing, but can I test the IAP in Alpha/Beta without buying anything? Same for achievements.

  • I'm guessing once an achievement unlocks it can't get unlocked again, Say its get 200 elfstones (Shanarra Chronicles reference they're aren't actual 200 elfstones in the novel or tv series, but still....say it's get 200 elfstones. if they get 200 elfstones, acheivemtn unlocked. When they start a new game and get 200 elfstones will it unlock and they get double exp?