dop2000's Recent Forum Activity

  • I meant like this:

    https://youtu.be/pUvevR16qlU?t=7m52s

    Skip to 7:50

    It looks like the player is moving freely, but in fact it moves from one tile to another.

    This will be much easier to make. There are lots of tutorials about this:

    https://www.scirra.com/tutorials/all

  • I haven't tried it, but maybe this plugin will help:

    If not, scrolling with events may be difficult as different browsers render text differently.

    Also, if you are making an RPG with lots of lines of dialog, hard-coding lines of text into events is a bad idea. There are few tutorials on how to make dialogs properly in FAQ.

    Here is one example that uses XML file to store dialog options:

    (Working link to capx file in comments)

  • You can try the same principle as you did with the sprite box to limit player movement. Only instead of BBoxTop, BBoxLeft etc. use coordinates of this tile edges. It will be a bit trickier though.

    You can use PositionToTileX(player.x) and PositionToTileY(player.x) to get tile coordinate.

    Then add event Compare Tile State to see if this tile is "unlocked" and player can move inside it.

    https://www.scirra.com/manual/172/tilemap

    Are you sure you want the player to move freely inside the tiles with 8-behavior?

    If you only allow movement from one tile center to another (like in most grid-based games), this will be much easier to do:

    Player presses Left button, you check if the sprite on the left is unlocked and use MoveTo behavior to move player sprite there.

  • Here is an example of Zelda-style dialog which uses XML file to store dialog lines:

    (there is a working link to capx in comments)

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Yeah, try not to mix Physics with other behaviors like Platform, Bullet, 8-Direction etc. You also should only move Physics objects using Physics actions (apply force, impulse, velocity etc.), don't just change their position or angle directly.

    All these things are not strictly forbidden, but if you mix physics and non-physics, the object may behave in unexpected way, interact with other objects incorrectly etc.

    That being said, there is an example of physics platformer game on youtube. Nobody knows how it's done, maybe it's a clever mix of both behaviors, or the author made his own platform engine with physics. We discussed it here:

    EDIT: All of the above applies to Chipmunk too.

  • "Else" should be at the same level as the condition (Button var=0) and there should be no other events between them.

    You can select the condition and press X, this will create an Else event for it.

  • I told you how in my previous comment - either with a global variable or with Timer on a global object.

    Create a sprite, set "Global=yes", put it off-screen on level 1, add Timer behavior, start timer for 6000 seconds.

    You'll have much better chances to get help if you post your code here, preferably capx.

  • How did you do the timer for each level? Why can't you use the same method for 10 levels?

    You can create a global variable StartTime, set it to time on start of level 1, and add this event:

    Compare global variable StartTime<(time-6000) -> (game over)

    The problem with using global variable is that you'll have to adjust its value when player pauses the game.

    Or you can start a timer for 6000 seconds on some global object. Timer is a better option.

  • Simply remove the condition "On every tick" from event #2, but keep the event itself.

    So in your event #2 you should have an empty box on the left and "System Set..." action on the right.

  • Yes, you can see the list of objects on the right bar.

  • First, you need to understand the difference between objects and instances of an object. This a mistake that many people make - creating lots of identical objects instead of instances of one object.

    In tic tac toe all cells should be just one sprite object - tttSprite.

    Add 3 frames - one empty, second with "X" image and third with "O", set animation speed to 0.

    Add an instance variable to this sprite, name it "cellState", type text.

    Place 9 instances of this sprite on the layout to form a grid.

    Now when players click tttSprite, you can set its cellState to either "X" or "O" and then update either just this instance or the whole grid using this code:

    tttSprite -> Compare instance variable cellState=""  -> Set animation frame to 0
    
    tttSprite -> Compare instance variable cellState="X"  -> Set animation frame to 1
    
    tttSprite -> Compare instance variable cellState="O"  -> Set animation frame to 2
    [/code:3bwie8gx]
    
    First event will [i]pick [/i]all instances with empty cellState and set frame to 0 for them.
    Second event will pick all instances with cellState="X" and so on.
    
    Picking is also an extremely important concept in Construct 2/3. I suggest you read these tutorials:
    [url=https://www.scirra.com/manual/71/instances]https://www.scirra.com/manual/71/instances[/url]
    [url=https://www.scirra.com/manual/75/how-events-work]https://www.scirra.com/manual/75/how-events-work[/url]
  • In that tutorial events #3 and #4 are executed on every tick, which is not very good. Also, there are several ways to toggle boolean variable in just one event, then event #2 will not be needed, for example: toggle=(toggle=0)

    Anyway, here is the right way to do this:

dop2000's avatar

dop2000

Member since 26 May, 2016

Twitter
dop2000 has 250 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