emoaeden's Recent Forum Activity

  • Have you also checked that the bounding box is the whole image, and not just around the A ?

  • The way I've done my game is to have two groups (Computer and Mobile) and to test at the start the game is on a mobile device, make group Computer deactivate and Mobile active, and if on Computer make group Computer active and Mobile deactivate.

    You can do this through either using the Touch or Is Mobile detection.

  • Are you trying to make something like this ?

    dl.dropboxusercontent.com/u/108799982/Exports/RTS/HTML5/index.html

    I can tell you it takes a fair bit of time, as you need to look at each units unique ability, movement, attack, as well as buildings, environment and resources.

    I have actually put this project on the back burner, as I am waiting for multiplayer functionality to become native in C2.

  • Alternatively, you can feed the value of the player into a global variable, then have it play animations as follows:

    GlobalVariable = Bob

    If Left button pressed >> Player play animation GlobalVariable&"Left"

    This way you can have one sprite called Player with different animations like BobLeft, BobRight, FrankLeft, FrankRight, etc

  • You could also give the ball two variables Min and Max.

    When the ball hits paddle A, set speed to Min

    When the ball hits paddle B, set speed to Max

  • I'm guessing this will probably do what you're after.

    dl.dropboxusercontent.com/u/108799982/Capx%20Demos/Pong.capx

  • Link to .capx file (required!):

    dl.dropboxusercontent.com/u/108799982/Capx%20Demos/MobileControls.capx

    Steps to reproduce:

    1. Continuously hold and move red sprite control (ControlPoint) and move it left to right

    2. Touch green sprite control (Jump)

    3. Continue to move red sprite (ControlPoint)

    Observed result:

    The green character sprite (Sprite) will move until you press Jump at which point it stops moving.

    Expected result:

    The green character sprite (Sprite) would move, jump and keep moving

    Browsers affected:

    Android export, as I do not have a touch screen monitor to try on my PC

    Operating system & service pack:

    Android 4.1.2 & 4.2.2

    Construct 2 version:

    R 155

    More Information: I notice that when you press anywhere on the screen with your first finger the Touch.Touchcount will equal 1. When you press with a second finger it will equal 2. If you remove the second finger, while the first is still touching, it will read 0; but it you remove the first finger, while the second is still touching it will equal 1.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • If they want to steal they will, as they can always Print Screen the website.

  • Can you upload a CAPX ?

  • Containers might not be useful for what you're trying to do. As a Container will spawn items in that container if one is used.

    What you might want is to create a family, whack a bunch of sprites in it, then give the family a variable (say a number) and then at the start of the layout, randomly give all instances of the family a random number between 1-5. Then if the Sprite variable = 1, spawn object A, = 5 Spawn object B, etc

    Let me know if you need a CAPX to get what I mean.

  • I had a similar issue a few months back when working on my RTS. In the end I just made a FOW layer and put them every 64 pixels apart, as the coding and wait time at layout loading was too long,

  • Anytime mate, maybe one day you can do the same:for ithers on here :-)

emoaeden's avatar

emoaeden

Member since 18 Jul, 2012

None one is following emoaeden yet!

Connect with emoaeden

Trophy Case

  • 12-Year Club
  • x2
    Coach One of your tutorials has over 1,000 readers
  • Educator One of your tutorials has over 10,000 readers

Progress

14/44
How to earn trophies