Basilboy's Recent Forum Activity

  • alrighty!

  • Hey how do I make the screen shake similar to scroll to effect?

  • This plugin is great, however I have a small problem. I have a HUD layer that is the touch controls for mobile devices, and I put the paralex to 0 so that it doesn't scroll away, but when the magicam is in action it zooms right past it.

    Is there a way for it to not zoom past the controls?

  • Is it possible to have a camera like this, where it zooms in and zooms out on the players depending on how close they are to eachother, and have it so that the camera is always pointed towards the action?

    I really don't know how to explain it well, anybody who's played super smash bros will know what I'm talking about though.

  • bump

  • Assuming player has some kind platform or 8 directional movement.

    Compare the stick XP(X Percentage) and YP(Y Percentage)

    Compare Value stick.XP > 30

    -- player.simulate(moveright)

    -- player.setSpeed = absolute(stick.xp * 5)

    Compare Value stick.XP < -30

    -- player.simualte(moveleft)

    -- player.setSpeed = absolute(stick.xp * 5)

    ... so on etc.

    Thanks. Could you explain what player.setSpeed = absolute(stick.xp * 5) does?

    Also is there a way to recognize if the player quickly tapped the analog all the way?

  • I don't think that's quite it.

    dl.dropboxusercontent.com/u/30826419/Analog%20Stick%20touch.capx

    Here is the analog stick, I'm not wanting to use any real gamepads.

  • bump...please I would like some help. Or if someone could message the author of that tutorial my question, jayderyu, that would be great. For some reason I can't private message anyone.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • bumpity

  • I successfully incorporated the arcade joystick on page three of this tutorial

    scirra.com/tutorials/398/touch-stick-controllers/page-1

    and it works really well, but I want to know how can I use it in events?

    Like how do I make it that if the analog stick is quickly tapped, something occurs, or if it is moved in different ways where different actions occur?

    To be more specific I'm trying to get a walking, fast walking, and running thing going on with this as it depends on how the analog stick is moved.

  • Thanks! I just didn't know how to use instance variables so I avoided them, but after reviewing a beginner tutorial I finally got it!

  • I dont know if you can call it AI but I made some very basic random movement for my npc. It's a top down view game, and the npc just moves in any of four directions. Every one second, a variable is chosen from 0-3 and the variable chosen determines the direction the npc goes.

    So that's all fine and dandy, but the issue is that every copy of the sprite that has this movement moves the same way, and what I want is for them to all move differently.

    Here's my capx file, please try to help.

    dl.dropboxusercontent.com/u/30826419/AI%20movement%20Problem.capx

    WASD to move. I put two test enemies to show the issue I have, when I want them to have different patterns of movement and not share it.

Basilboy's avatar

Basilboy

Online Now

Member since 22 Mar, 2013
Last online 24 Nov, 2024

None one is following Basilboy yet!

Trophy Case

  • 11-Year Club
  • Popular Game One of your games has over 1,000 players
  • Regular Visitor Visited Construct.net 7 days in a row
  • RTFM Read the fabulous manual
  • Email Verified

Progress

15/44
How to earn trophies