oosyrag's Recent Forum Activity

  • Here is an example I had for a simple stepping/grid movement system. I just added an additional condition to each movement key to constrain or set limits for the movement. In this case it is 3x3 space like the game example you mentioned.

    https://www.dropbox.com/s/j5ghk49epzo5k ... .capx?dl=0

  • Choose is limited to a fixed set of numbers. If you need a flexible set, an array is the best choice.

  • One solution for this is to have your spaceship actually static in terms of position, and have your controls actually move all the other objects around it and rotate the entire layout.

    Another involves setting up a custom pathfinding system that allows for node positions to be pinned/updated with movement of your ship. This can be done in conjunction with the built in pathfinding behavior, as that allows you to access the node coordinates. Basically use the pathfinding behavior to calculate the path, then your own movement system by creating invisible helper objects at each node that are pinned to the ship, and have your NPC's ( which are also pinned to the ship) move towards each node object in succession.

    Third way is just to recalculate pathfinding every tick. Definitely not recommended, unless the scope of your game is very, very, small.

  • You cannot control the final scale, as the size/resolution of the browser or game window is controlled by the end user.

    Recommend using the following settings in your project properties:

    Fullscreen Mode - Letterbox Integer Scale

    Sampling - Point

    Pixel Rounding - On

    You can control increase or decrease how much of a layout a player sees (viewport) by using the Set Canvas Size system action, but I don't think that is what you're going for...

  • Even if you send a no-cors request, an opaque response cannot be read or accessed by JavaScript.

    This is normal behavior, basically one use case is to prevent hot-linking to resources that are not yours (stealing bandwidth). Either you have access to the server/domain where the resource is hosted and configure it to allow cors, or you'll need a copy of the resource on the same domain as your game/app so then cors is not necessary at all.

  • Use the browser objects "On Suspend" and "On Resume" triggers to keep track of how much either unixtime or wallclocktime has elapsed, and then adjust your game state based on that time.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • CORS needs to be set up on the server you are requesting data from, not from the construct app or the domain hosting the construct app. It is set in the hosting server's configuration files.

  • Tile sizes can't be changed with actions, although the width and height of the entire tilemap can change.

    If you want different "resolutions" of tilemaps, one way is to have multiple tilemaps with different tile sizes layered on top of each other and only display the relevant one at any given time.

  • https://www.scirra.com/manual/85/layers

    See Global Layers section

  • Any loop event will complete in the same frame it is run.

    If you want to run a loop over time, use every x seconds (or every tick), and an incrementing counter to keep track of how many times to loop.

    For example,

    Every 0.1 seconds

    countervariable < x

    -> Do looped action

    -> Add one to countervariable

    You can combine this with smaller loops as well, to break up a larger loop into smaller ones in succession.

  • If your background image origin point is in the center, you'll need your background to be 2 times the window width. You currently set it to equal window width on start of layout.

  • Link to your suggestion for votes - https://construct3.ideas.aha.io/ideas/C3-I-35

oosyrag's avatar

oosyrag

Member since 20 Feb, 2013

Twitter
oosyrag has 39 followers

Trophy Case

  • 11-Year Club
  • 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
  • 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
  • Email Verified

Progress

21/44
How to earn trophies