dop2000's Forum Posts

  • Always stick to the version that works now. That's an industry-wide approach to making games.

    You will have to update sooner or later if you want to publish your game. And the more versions behind you are, the more likely you'll run into issues.

  • Is your grid also isometric, as in the gif?

  • This will snap the sprite to 10x10 px grid:

    Sprite On Drop
    OR Sprite Is Dragging
    
     -> Sprite set position to X: round(self.x/10)*10, Y: round(self.y/10)*10
    
  • You link says "access denied".

    I have two example projects with a similar camera behavior, you can download them here:

    howtoconstructdemos.com/camera-two-examples-of-scrolling-limited-to-a-certain-zone-capx-capx

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • There is another (a bit more advanced) way to shorten your code into a single event.

    System HighestLevel>11 
    System HighestLevel<=160 
     -> quotes Set animation frame to (HighestLevel>122 ? 4 : HighestLevel>82 ? 3 : HighestLevel>51 ? 2 : 1)
     -> Achievements set frame to self.num
    
  • I assume both objects has the Platform behavior?

    You can try something like this, but it may require some tweaking.

    Note that the first event is an OR-block - here is jumping OR hero is falling.

  • If the platform behavior is disabled, then of course you can't simulate its controls.

  • Here is an example of a 2D array:

    The selected record has the coordinates (1, 5). You can access it directly using Array.At(1,5) expression.

    To loop through this kind of array, you can use the Array For Each event.

    For Each X loops only through the X axis, while For Each XY goes through all elements like this:

    Inside the For Each loop, you can use these expressions to get the current index or value: Array.CurX, Array.CurY, Array.CurValue

    “For Each” loops are rarely useful when working with 2D or 3D arrays — I prefer system loops because they give more control.

    For example, this loop goes through lines 1–7 (I don’t need line 0 because it contains column headers) and displays the message from each line:

    The Push action allows you to insert an empty row or column at the front or back of the array. I don’t think you’ll need this for a visual novel.

  • I just don't know how to execute it in the engine.

    Exactly as described in the comment above.

    There are also two official examples, search for "visual novel" in the example browser. One uses an array, another - flowcharts.

  • I would use a drawing canvas. You can paste both the sprite and the 9patch on it, and then drag the canvas object.

    -> DrawingCanvas: Paste object Sprite with effects
    -> DrawingCanvas: Paste object Mask with effects
    

    Or save the canvas image and then load it into another sprite.

    -> System: Wait 0.1 seconds (use time scale: True)
    -> DrawingCanvas: Save image (PNG, quality 75, offset 0, 0 size 0 x 0)
    -> System: Wait for previous actions to complete
    -> AnotherSprite: Load image from DrawingCanvas.SavedImageURL
    
  • I created an array under files. Inserted the Array, Json and AJAX objects. Then, put an on layout load action from AJAX to Request Project File from the array file I created at first. And I am supposed to I think use the parse action from the JSON object somehow?

    No, if your file type is "array", you don't need the JSON object. After requesting the file with AJAX, load it into the Array object:

  • NECRONOMICRON It doesn't work that well, and starts lagging terribly with a large number of moving objects. My physics example works a lot smoother.

  • Yes, booleans are cumbersome to work with in Construct. I suggest using number variables instead - 0 for false, 1 for true.