ramones's Forum Posts

  • You can use the set layer background color action and change the r,g,b values over time.

  • Sure just append the variable to the end of the key name:

    Dict_XYZ.Get("XABCD " & Number)

  • You can put those sprites on another layout. Just create a new layout to hold all the sprites that you don't need at the start of the game.

    Or you could add a condition to the sound playing action to check that the sprite isn't outside the layout.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • [attachment=2:3u7ppbui][/attachment:3u7ppbui]

    When you press shift and D then both of those events will run. The sprite moves right 32px and then up 32px.

    If your shift event was moving the sprite diagonally then it would end up moving across 2 and up 1 like you said.

    If you only want to run one movement action depending on if shift is or isn't down then you would do it like this:

    [attachment=1:3u7ppbui][/attachment:3u7ppbui]

    or

    [attachment=0:3u7ppbui][/attachment:3u7ppbui]

  • There's a large solid sprite that says WATERMELON CITY in it's way. (It goes invisible but you can still collide with it.)

  • You can have your level editor export the data in the correct format like this:

    [attachment=0:3nbexz0a][/attachment:3nbexz0a]

    Still I'd just use project files unless you've tested it and it's noticeably slower.

  • Right, the editor expects you to enter a string so you have to put it in quotation marks and you have to escape any quotation marks inside the json string with double quotation marks.

    Eg.

    {"c2array":true,"size":[30,8,4],"data":[]}

    will work when loaded from a file but if you want to paste into an event you have to change it to:

    "{""c2array"":true,""size"":[30,8,4],""data"":[]}"

  • Steely What's wrong with it? It's not loading from a project file?

  • You should probably ask in the thread for the third-party plugin you're using if it's not working.

    I looked up that plugin Phonegap FacebookPB Apparently it is deprecated and there is a newer version called Phonegap Facebook.

  • Yeah the "on change" doesn't fire when you select the same file. In Chrome at least. It works in Firefox.

    As a workaround you can clear the selected file with some JavaScript.

  • > What about the events that damage the enemy? Maybe you damage both enemies when you hit one. The event you showed would only destroy two enemies if they both have health <= 0.

    >

    ramones Here is the code for the player attacks. Whether it is the first code or the second they will both be destroyed.

    Right that will damage all enemies. You have to use:

    Player: On collision with Family -> Family: Subtract from health

    or

    Player: On collision with Sprite -> Sprite: Subtract from health

    Use either the Family or the Sprite in both the condition and action. You can't use the family in the condition and the sprite in the action or vice versa.

  • What about the events that damage the enemy? Maybe you damage both enemies when you hit one. The event you showed would only destroy two enemies if they both have health <= 0.

  • You have a typo in the filename.

    I think Dropbox has the correct mime types set up already. But even if it didn't it shouldn't stop your game from loading.

  • It should be just .htaccess

  • In your notepad++ screenshot the file is named .htaccess.htaccess. Have you fixed that?