dop2000's Recent Forum Activity

  • If your question is about organizing data, you can do this with multiple array instances.

    Create a separate instance of the inventory array for campfire, box, backpack etc.

    To know which each array instance is for, add an instance variable "InventoryType".

    Then insert as many elements as you need.

    Or you can make an array of arrays - "master" array that stores UIDs of all "secondary" arrays.

  • I don't think there is a better solution other than comparing the angles and changing animations.

    System-> Is between angles -> Character.8Direction.MovingAngle between -45 and 45 : Character set animation frame 0

    System-> Is between angles -> Character.8Direction.MovingAngle between 45 and 135 : Character set animation frame 1

    etc.

  • Sprite -> On animation finished -> Sprite destroy

  • urkokan

    You do realize this post is 7 years old?

    Check out the Tutorials section, there are lots of examples for platfrormer games.

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

  • Add this sub-event under your event #4:

    Player1 is mirrored -> Bullet1 set angle of motion to 180

  • Hmm, you are right, and I was wrong.. Inverted "Green has LOS to Red" condition doesn't mean "pick all Green instances that don't see any Reds".

    It picks Green instances that don't have LOS to at least one Red instance.

    So, for example, if Green instance sees 10 out of 11 Red instances, it will still be picked by this event.

    Anyway, to avoid confusion I suggest using For Each:

    For each Green
       Green has LOS to Red -> Green set var to 1
       Else -> Green set var to 0
    [/code:utx5s1dm]
  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Actually, inverted condition should work too.

    You can do this:

    green has LOS to object -> set value to 1

    green has NO LOS to object (inverted condition) -> set value to 0

    The first event will pick all green instances that has LOS.

    The second event will pick all instanced that don't have LOS. (EDIT: this is wrong, see my next comment)

    Once you understand the concept of picking in Construct, it should all become much clearer.

  • "Else" in this case doesn't mean "all other instances that don't have LOS". If at least one instance has LOS, then the Else block will not be triggered.

    Assuming that you are setting the value 0/1 to an instance variable (not global), you can use "For Each", or you can set 0 to all instances first and then change it to 1 for instances that have LOS, like this:

    On every tick (or whatever other event) -> Green Set variable to 0
         If Green has LOS to Red -> Green Set variable to 1
    [/code:258ov9mq]
  • I've had this issue for months, just learned to live with it.

    And it's not only in sprite editor, in some other parts of the C2 software when you right-click, some options (that should be active) in the drop-down menu are greyed out but still clickable.

    I think this only happens on Windows 10.

  • Tokenat() expression is perfect for this.

    s="100,Hello"

    Tokenat(s, 0, ",") will return "100"

    Tokenat(s, 1, ",") will return "Hello"

  • First, you are confusing people and scaring them away telling that this is a multiplayer game. It's not. Multiplayer in C2 means playing with other people online.

    Your mistake is in Axis() expression. It takes two parameters - gamepad number and axis index.

    So for the second player you should use Axis(1, index)

  • "On step" condition is only available in Construct 3.

    In C2 you can try pinning a bigger (longer) invisible sprite to the bullet. Use it to check for collisions with enemies

dop2000's avatar

dop2000

Member since 26 May, 2016

Twitter
dop2000 has 279 followers

Connect with dop2000

Trophy Case

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

30/44
How to earn trophies