dop2000's Recent Forum Activity

  • The first line in your php retrieves 100 top scores. If John Doe is not in the top 100, his score will not be shown.

    If you want to display first 100 plus John Doe, you need to first retrieve 100 top scores, and then get one or several highest scores for John Doe:

    SELECT * FROM scores WHERE name='John Doe' ORDER BY score DESC LIMIT 1[/code:vknipp8z]
    
    Or modify your SELECT statement, probably to something like this:
    [code:vknipp8z]SELECT....TOP 100 
    *UNION* 
    SELECT ... WHERE name='John Doe'...[/code:vknipp8z]
  • I believe it's not possible with just one boolean instance variable and nothing else.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • kriand

    "every 0.1 seconds" is not much better than every tick in this case. Before using "acquire target" you need to check that this turret does not have any targets already. Or simply use "Add object as target" once and the turret will acquire them automatically.

  • kriand , What is "2"? Did you mean setting animation frame to 2? But this will skip frame 1.

    DarthPapalo666

    If your animation is not looping, you can make this event with 3 conditions, it will only be triggerred once:

    Sprite On animation frame change

    Sprite Animation frame =0

    Sprite is animation "Name" playing

  • Be careful though, if you have multiple instances of sprite, with "System->Trigger once" it may not work as expected.

  • Oh, so you quickly pour a large amount of water onto one spot, and then it flows down to lower levels. Got it.

  • Your array2 values contain line break (newline) in front.

    use trim() expression when putting text values into the array, it will remove all invisible characters - spaces, tabs, line breaks.

  • There are a few tutorials about using turrets, study them.

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

    You can add objects to turret's target list at start of the layout, then they will pick targets automatically, once they are in range.

    If you want control over which targets they should shoot at (for example to prefer stronger enemies), you can use "Acquire target", but you need to make sure that turret doesn't already have a target.

  • You can add Persist behavior to those 4 text boxes, add instance variable UseCounter.

    textBox Pick Lowest UseCounter

    ...System Pick random instance of textBox -> TextBox add 1 to UseCounter ; TextBox Set text

  • R0J0hound

    Squares of different color mean different height above the sea level, right?

    I don't understand, why is water flooding light red and dark red squares at the same time?

    Shouldn't it fill the lower level squares first?

  • You can try this:

    Turret NOT has target
         Enemy instVariable="specific value"   -> Turret acquire target Enemy
    [/code:p1s27k1s]
    
    If you have "Add turret target Enemy" event, you need to remove or disable it.
  • wizdigitech

    Read about how instances are picked in events:

    https://www.scirra.com/manual/75/how-events-work

    "On tap" event picks one instance. If you need to refer to another instance in the same event, use "System Pick all" and then "Sprite compare variable"

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