dop2000's Recent Forum Activity

  • Also, Kyatric

    I tried "Report" button, but it doesn't work.

  • The triggered event "obj_bullet_yellow On created" is placed as a sub-event under "Every 0.9 seconds". This is wrong. Move it to top-level and it will work.

    Also, you code is a bit messy.. You have Enemy family, but you are not utilizing it. You have lots of duplicate events for each enemy type - this is exactly what families are supposed to optimize.

    Move LoS, Pathfinding and other behaviors to the family, and you'll be able to decrease the amount of code significantly. See this link:

    scirra.com/tutorials/535/how-to-upgrade-an-object-to-a-family

    You can add another copy of Enemy family to use it in events like Enemy is overlapping EnemyCopy. You can use "Create by name" action to use in events like Enemy has LoS to player : System create "obj_bullet_"&Enemy.Type and so on..

  • .

  • I don't know.. There are lots of ways you can count those dino instances that are moving out. You can use "LiteTween on end" event and set some instance variable on dino. (for example set finished=1). Then pick all instances with finished=1 and use dino.pickedcount expression

    Or use a global variable as a counter. Or pick dino sprites by comparing x>layoutwidth and again use dino.pickedcount to count them..

  • You are right, there seems to be no direct way to load image to canvas. But you can use a sprite - load SavedImageURL string into the sprite. Then paste the sprite onto canvas. I tested this and it works.

  • I'm not sure I understand your question.

    Try to pick Dino instances that "move_out". And use Dino.PickedCount expression to check how many are picked.

  • If you open the plugin page, it's very well documented and there is a link to sample capx project. Also, check the discussion thread, this is a popular plugin and there may be lots of useful information in the comments.

  • Yes, you can add "DrawingCanvas Save Image" action, and then in "DrawingCanvas on saved image" event use DrawingCanvas.SavedImageURL expression - it will contain your image data. You can do whatever you want with this data - load to sprite, another canvas, save to local storage etc.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Yes, you can pass any number of parameters to functions, and access these parameters inside the function using Function.Param(0), Function.Param(1) etc..

    So in your case you can call function "AddAmmo" with parameter 6, and inside the function use "Add Function.Param(0) to ammo"

  • If you need to pull data from static tables, use these addons:

    construct.net/en/forum/extending-construct-2/addons-29/plugin-csv-csv2array-csv2dicti-41868

    You can also exchange data with google spreadsheet:

    scirra.com/tutorials/9614/create-online-database-with-google-spreadsheet

  • You can try this - use an invisible sprite with platform behavior (lets call it PlayerBox) and remove platform behavior from the player. When player is on this slope (use Overlapping at offset to check this), set Player position to lerp(Player.X, PlayerBox.x, dt*10), lerp(Player.y, PlayerBox.y, dt*10) , this should smooth out the jitter.

    When player is not on the slope, simply set position to PlayerBox.x, PlayerBox.y

  • You can increase sensitivity, but it's not possible to decrease it with standard methods. Even if you replace the mouse cursor with slow-moving sprite, when the real mouse cursor hits the corner of the screen, Mouse.X and Mouse.Y coordinates will no longer change and your sprite will also stop.

    The only solution I believe is to use this (or a similar) addon:

    construct.net/en/forum/extending-construct-2/addons-29/plugin-mouse-lock-v0-5-updated-77252

    It allows you to read "raw" values of mouse movement and you may be able to use them to move the sprite cursor.

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