ramones's Recent Forum Activity

  • Interesting. The line of sight looks for a clear path from the object's origin point. In the first capx the origin of the Enemy is at the bottom and it's overlapping the ground so the ground is blocking the line of sight.

  • Local variables are reset every tick unless you make them static. So timer will never reach 200.

  • Call 'Regenerate obstacle map' on start of layout.

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

  • [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]

  • Try Construct 3

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

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

ramones's avatar

ramones

Member since 17 Apr, 2012

Twitter
ramones has 4 followers

Trophy Case

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

Progress

15/44
How to earn trophies