dop2000's Recent Forum Activity

  • Add two variables CellX, CellY.

    On every tick
    If CellX not equal Tilemap.SnapX(Mouse.x)
    OR CellY not equal Tilemap.SnapY(Mouse.Y) 
    	-> Set CellX to Tilemap.SnapX(Mouse.x)
    	-> Set CellY to Tilemap.SnapY(Mouse.y)
    	-> ... other actions
    
  • You do not have permission to view this post

  • You do not have permission to view this post

  • Use Debug Mode (Ctrl-F4, Ctrl-F5) to see what's causing performance loss. You can see how much memory images are using, how many collision checks are made every tick etc. Profile tab shows which event groups are most CPU-intensive.

    For example, on my laptop "Level Building" group was using 17% CPU. After I changed event 35 from running on every tick to On Start of Layout, it dropped to 0%!

    .

    Also, search this forum and tutorials for performance tips, there have been several posts with lots of useful info.

    construct.net/en/make-games/manuals/construct-3/tips-and-guides/performance-tips

  • You do not have permission to view this post

  • It depends on what you are trying to do. If you want to make an effect of something smashing into pieces, you can add a sprite with say 20 frames, representing different pieces. And then create 10 instances of this sprite with random frames.

  • felipenune Use Array.AsJSON expression.

  • Yes they are. On page 48

  • Like this?

    dropbox.com/s/6h6dqawzl91llqn/SelectEmployeeFromList.capx

    .

    May I add that Construct is a really poor choice for this task. I suggest doing this in MS Access or Excel or something similar.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • You can't invert collision polygon. Use invisible solid sprites or tiledbackgrounds to build a border around your island. Or a tilemap with solid behavior.

  • You can use lerp and unlerp functions. For example:

    Set bullet scale to lerp(1, 0.5, distance(bullet.x, bullet.y, player.x, player.y)/600)

    At 300px from the player bullet scale will be 0.75, at 600px the scale will be 0.5

    .

    Or another example with unlerp and based on Y coordinate:

    Set bullet scale to unlerp(-100, 500, bullet.y)

    As the bullet is traveling from y=500 to y=-100, its scale change from 1 to 0.

    .

    Or simply use Sine/Tween behavior to change bullet size over time.

  • You can write multiple JSON strings to a file, separated with newline (or any other custom character or tag).

    Then parse them with tokenat(), for example tokenat(filecontent, 2, newline) is the line number 3.

    Or you can read them in a loop:

    Repeat tokencount(filecontent, newline)-1
    	Create sprite
    	Sprite load from JSON tokenat(filecontent, loopindex, newline)
    
dop2000's avatar

dop2000

Member since 26 May, 2016

Twitter
dop2000 has 262 followers

Connect with dop2000

Trophy Case

  • 8-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
  • x13
    Great Comment One of your comments gets 3 upvotes
  • Delicious Comment One of your comments gets 10 upvotes
  • Email Verified

Progress

28/44
How to earn trophies