dop2000's Recent Forum Activity

  • You can do continuous preview:

    https://www.scirra.com/tutorials/529/ho ... us-preview

  • Pathfinding using a tilemap might be a good idea if your enemy doesn't have platform behavior. (say, if it's flying above the ground and you move it using Bullet or MoveTo)

    With platform behavior you'll have to find the path first, and then move the enemy from one node to another, simulating platform controls - either left, right or jump. You'll also need to make sure that your enemy can jump across gaps, obstacles etc.

  • You are trying to load game from a string that contains the file name. This obviously doesn't work.

    You need to read the file and load game from the file content (JSON-string):

    Load game from JSON string:

    NWjs.ReadFile(NWjs.AppFolder&"Mapas\"&Array.At(0))

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • That was the most obvious problem with your events, but there may be other mistakes.

    Could you post your capx? It's hard to understand what's going on in that screenshot.

  • It's hard to tell, but you can run a test:

    On every tick

    Repeat 10000 times -> Function Call "MyFunction"

    In the function try setting the values directly or from the array.

    Run the project in debug mode and compare the performance.

  • "Array.CurValue" expression and "Array compare current value" event can only be used inside of "Array For each" loop.

    You need to replace them with "Array.At(x)" or "Array Compare at X"

  • And how are we supposed to help you without seeing your capx?

    You didn't even tell us what kind of game this is - platform, top-view, grid-based etc.

  • vontheodore

    I really don't recommend using "Waits" in game mechanics, especially long-running waits (for several seconds or longer). This is a very common mistake many beginners make.

    Use Timer behavior instead.

  • You do not have permission to view this post

  • Check your origin image point in Rocks sprite. It should be at (0,0) for all frames!

  • On your screenshot the "For each key" event is executed every tick, which is wrong.

    You need to move it to "Local storage item exist", after you've loaded the dictionary from local storage.

    Also, you should remove subevent #3.

    And if the "Name" instance variable is unique for each item, it's better to pick a_PicPreview by Name, rather then by UID.

  • Using "Wait" or "Every X seconds" like this can give you nothing but trouble.

    You need Timer behavior.

    Timers are running per each instance and you have control over them (pause, stop etc.)

dop2000's avatar

dop2000

Member since 26 May, 2016

Twitter
dop2000 has 279 followers

Connect with dop2000

Trophy Case

  • 10-Year Club
  • Entrepreneur Sold something in the asset store
  • Jupiter Mission Supports Gordon's mission to Jupiter
  • Forum Contributor Made 100 posts in the forums
  • Forum Patron Made 500 posts in the forums
  • Forum Hero Made 1,000 posts in the forums
  • Forum Wizard Made 5,000 posts in the forums
  • Forum Unicorn Made 10,000 posts in the forums
  • x5
    Popular Game One of your games has over 1,000 players
  • x2
    Coach One of your tutorials has over 1,000 readers
  • Educator One of your tutorials has over 10,000 readers
  • Regular Visitor Visited Construct.net 7 days in a row
  • Steady Visitor Visited Construct.net 30 days in a row
  • Enduring Visitor Visited Construct.net 90 days in a row
  • Unrelenting Visitor Visited Construct.net 180 days in a row
  • Continuous Visitor Visited Construct.net 365 days in a row
  • RTFM Read the fabulous manual
  • x3
    Quick Draw First 5 people to up-vote a new Construct 3 release
  • x14
    Great Comment One of your comments gets 3 upvotes
  • Delicious Comment One of your comments gets 10 upvotes
  • Email Verified

Progress

30/44
How to earn trophies