dop2000's Recent Forum Activity

  • Here is a screenshot:

    imgur.com/a/bgc8rw8

    I recommend using number variables instead of boolean, it's easier - simply set 1 for true, 0 for false.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • I've explained this so many times in many posts, but people keep making the same two mistakes:

    1. You should never use Trigger Once condition with objects that have multiple instances. Trigger Once doesn't work per instance!
    2. You have events that run on every tick with Wait action in them. This creates lots of delayed threads, which will continue running for several seconds. Never use "wait" in events that run on every tick! It will break the game logic.

    Instead of "Trigger once" use some condition like "is pinned" or "turret enabled". Instead of "Wait" use the Timer behavior to destroy guns.

  • Save where?

  • If I enable Unbounded Scrolling for the layout, an empty screen becomes visible at the bottom.

    Screen shake doesn't work when there is nowhere to scroll. You need to:

    • enable the Unbounded Scrolling
    • use a separate Camera sprite with ScrollTo behavior (its size doesn't matter)
    • move tha camera to player position
    • limit the camera movement to layout bounds

    Example:

    dropbox.com/scl/fi/ins0stjp4a58gxdoryh9v/BoundedScroll-with-shake.c3p

  • Do you need to jump through these platforms up, or fall through down?

    I haven't tried it, but perhaps you can use both JumpThru and Solid behaviors. On pressing jump or down key - disable Solid on nearby platforms. When the character is on the ground - enable Solid.

  • Turns out I needed to add a wait command in the following code:

    Why do you set AllEnemiesDefeated to true immediately at the start of layout?

    Deactivating/activating the groups as Igor has suggested is a better solution than adding a wait.

    Another good option is to load the array in advance in a separate layout (say, in the splash screen or loader).

  • I set a text box as one of the cells in the Array to see if I could get the value to show. It came back with the value 0, it shouldn't be that.

    Can you show this code too? The entire event, or even the entire event sheet.

  • If you want to spawn the missiles at the player's current location, then use player coordinates instead of fixed values.

    For example:

    Create missile at (Player.x, Player.y-200)
    Create missile at (Player.x-300, Player.y-200)
    Create missile at (Player.x+300, Player.y-200)
    

    Or, you can spawn them relatively to the viewport:

    Create missile at (ViewportMidX("layer"), ViewportTop("layer")-80)
    
  • It's better to use a variable - increase the variable and set the text to that variable.

    Without a variable you'll need to convert the text to number and back.

    Textbox set text to str(int(self.text)*1.5)

    or use float() expression instead of int() if you need decimals.

  • Obj.Pathfinding.Speed expression will give you the current speed. You can save it in a variable on every tick to check if the object is accelerating.

    if Obj.Pathfinding.Speed>savedSpeed : // is accelerating
    
    On every tick: Set savedSpeed to Obj.Pathfinding.Speed
    
  • And with a number variable you can use more than two values if needed! :)

    -1=undefined

    0=false

    0.5=maybe

    1=true

    2=definitely true

dop2000's avatar

dop2000

Member since 26 May, 2016

Twitter
dop2000 has 273 followers

Connect with dop2000

Trophy Case

  • 9-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

29/44
How to earn trophies