dop2000's Recent Forum Activity

  • As far as I know, this is not possible.

    You'll probably have to make your own typewrighter effect by adding one letter to the text every 0.1s or so.

    Then you will be able to detect the actual width of the text using Text.TextWidth expression and place the cursor in that position. But it will only work for a single line of text.

  • Shouldn't the variable isDead be called isAlive instead? isAlive=1 means the player is alive. isAlive=0 means not alive any more. (since in any programming language 1 is true and 0 is false)

    Checking if the player has any health left or if it's dead on every tick is not a good practice. I suggest you move these event inside the event where the player actually receives damage. For example:

    Bullet On Collision with Player : Player subtract 1 from Health
    
    .... Player health<=0
    .... : Player set isAlive=0
    .... : Player play animation "Death"
    

    See if it helps. If the animation still doesn't work, run the game in debug mode and check the variables on the Player object.

  • One possible reason is that there is no path to the nearest enemy.

    I suggest adding logging to your events - for example in the first event on your screenshot add this action:

    Browser Log "Finding path to enemy UID:" & enemy.uid

    Add another event "On Failed to find path" with another Browser Log message.

    Then run the project in debug mode, open console and check the enemy UID. Find this enemy by UID, zoom out the layout, see if it's blocked in solid objects etc.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • No, I had this issue too, couldn't find a solution.

    If you manage to reproduce it in a small project, you can post a bug report.

    github.com/Scirra/Construct-3-bugs/issues

  • Check that the "On created" trigger is actually triggered. The easiest way is to add a "Browser Log" action, then you can see if the message appears in browser console.

    If you discover that the event is not triggered, check if the event sheet is connected to your layout, or included in your main event sheet, that the event group is activated etc.

    By the way, I believe if the object is very dark or black, the "Set color" action will have no effect.

  • You don't need Orbit behavior for that. Here is the easiest method:

    On every tick:
    Arrow set position to Player
    Arrow set angle towards (Mouse.x, Mouse.y)
    Arrow move 50 pixels forward
    

    Or you can set the origin image point in the arrow sprite at x=-50 and then you won't even need the last line.

  • I keep all addons which I use in a separate folder. When I need to install them, I just select all files in the folder. C3 still asks me to confirm the installation of each addon, but the whole thing takes about 30 seconds.

  • Not exactly..

    Since you have an array in JSON, you can pick by comparing sprite ID with the index in JSON array. And add Description and Sprite in a container. Here is the fixed file.

    dropbox.com/s/v5m52m7m99c5vhg/borrador%20load%20json2.c3p

  • You should use either "For each sprite" loop, or "JSON For each entry" loop, not both!

    If you are using "JSON For each entry", then inside this loop pick one instance of the sprite.

    For example, you can manually set Rank values for all sprites. And then pick the sprite for each entry by rank:

    JSON For each entry
    Sprite compare instance variable Rank=JSON.get(".rank")
    ... Sprite set UserName etc.
    
  • Why are you comparing BulletsOnScreen with Bullet.count? Bullet.count was supposed to replace BulletsOnScreen variable. So the condition should be something like Bullet.count>4

  • Yeah, the objects need to be on specific layers, make sure to check layer properties. And there are also some blend modes used. I don't remember the details myself to be honest :)

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