TheDom's Forum Posts

  • I would create a text box on screen and write the X & Y coordinates to the text box Just to see what it reads when the mouse is off screen. it may be 0, 0 and in that case, you may be able to create a condition that says

    Mouse compare X = 0

    Mouse compare Y = 0 》do something

  • Just tried it with a gamepad. Works good but I would include it to fire on the A button and offer the left pad for direction as alternate control options. But that's just me. Offering both let's the player choose.

  • You tend to get buried on market JS since they frontline their own work it seems. I haven't tried market JS though for a long time and I never tried FGL but have talked to others who have. I would favor FGL, if your making an either or choice but, there is no reason you cant do both.

  • Do you mean rename the index.html file to something else like game.html? If so, Yes.

  • Try creating an invisible small sprite and pin it to the mouse every tick at position mouse.x, mouse.y and then create the condition as :

    Sprite > Is OnScreen (x) > Do something ( x being inverted )

  • Look right in Construct 2's sample project examples that come packaged with it. I'm almost positive there's a demo in there that shows what you want...

  • When you set them as global in the properties dialog, they are global across all layouts.

  • I downloaded. It is a bit confusing. I know your new. Give me a day or 2.

  • In the properties dialog box is "Default Controls".

    However you decide to switch between controlling player sprites, set the current one to use "default controls" and deactivate the one your switching from..

    Use a global variable (Set_Player). Then make a few statements.

    System > Set_Player = "Player_1" > Player_1 > Stop Ignoring Input

    .........................................................> Player_2 > Start Ignoring Input

    .........................................................> Player_3 > Start Ignoring Input

    System > Set_Player = "Player_2" > Player_1 > Start Ignoring Input

    .........................................................> Player_2 > Stop Ignoring Input

    .........................................................> Player_3 > Start Ignoring Input

    System > Set_Player = "Player_3" > Player_1 > Start Ignoring Input

    .........................................................> Player_2 > Start Ignoring Input

    .........................................................> Player_3 > Stop Ignoring Input

    Depending on the variable value, controls will default to the selected player sprite.

    Hope this helps.

  • I've experienced the same issues. The problem is the shape of the collision polygon. Even though you have it at an angle, that doesn't mean it will slide off. Those lines are still made of pixels that are square. So when you shape the players collision at an angle, your really creating a series of edges. Make the collision shape square or rectangular but straight 90 degree angles and that includes the platforms too. You can see the edges even in the images you posted and even the slightest difference will cause the player to get hung up.

    Hopes this helps

  • Webstorage is the solution. Can you post a capx?

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • It's a little hard to understand what's happening just based on the code and your description. In any case it's NOT a complete view. Looks like your using some variables but, it's not clear what they represent. Can you post a capx?

  • Create a variable (Weapon) associated with the weapon type. Then create statements with dual conditions.

    Button > On click > Player > Spawn Object > Bullet

    System > Weapon = "Gun"

    Button > On click > Player > Spawn Object > Many Bullets

    System > Weapon = "Shotgun"

    When the mouse scroll changes, changes the value of the variable or when he picks up a new weapon.

    Hope this helps

  • Replace the local path with the full Url to the index.html file. Web browsers don't recognize the local path on the server.

  • First you have to decide how your going to call the image when you click the button.

    You can use "Spawn another Object" if your going to create from a specific object or sprite.

    You can use "Create Object" event under System.

    Then create a Global Variable called "Images" for example.

    Then Make a series of statements like so:

    System (compare variable) like so:

    System > Images = "Sprite 1" > System >Create Object >Sprite1, Layer 0, X,Y

    Create a statement of code for every sprite or text you want to be able to create.

    Then when the button is clicked use:

    Button > On Clicked > System (set value) > Images = choose(sprite 1, sprite 2, sprite 3, etc...)