RBuster's Recent Forum Activity

  • Thanks

  • Just one question: how do I remove the correct frame number when generating permutation. For example: I have 20 frames and the correct frame is the 5, how to make it not to be part of it?

  • So a possible solution would be for me to store the result of the first advancerandom in an array and then use it again for the buttons. Thanks.

  • You're right, advancerandom is much simpler, however, as I said, I'm already using it to display images of the exercises on the screen. Can't a conflict occur if I also use it for the buttons, since there is only one advancerandom object available?

  • Hi dop2000

    Thanks for replying.

    Isn't there a way to sort the frames for each button so that they are not repeated, with the exception of the correct frame, without using advancedrandom and without using so many existences? The buttons actually have 3 different animations, each with 20 frames.

  • I have 5 button instances with 20 frames containing icons. One of the icons is the correct one and I already know which frame it is, but I would like the other buttons to show different icons (different frames) with the exception of the correct one and not repeat themselves.

    I thought about first distributing the different frames to each button, without including the correct frame, and then selecting one of them to show the correct frame. This second part I know how to do. Does anyone have any idea how I can distribute the frames to the buttons without repeating and leaving out the correct frame?

    PS: I am already using Advanced Random for another part of the script

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • You do not have permission to view this post

  • You do not have permission to view this post

  • Thank you very much! it worked like a charm.

  • Like this? Because this doesn't work. I still don't really understand how to combine events

  • "Distance" didn't solve the problem, because when I have a very long path and have to assign a high distance, this ends up interfering with other bases.

    I had already fixed the problem with some IDs. Everything is right. I believe your file has the same problem as mine, which is that other buttons that also control the same base can move objects that are far from them.

    I am sharing my file with this problem. Could you share yours so I can check?

    we.tl/t-sfk2nTcwlH

  • Is it possible to know the direction of movement (left/right/up/down) of an object that moves using the MoveTo behavior? I wanto to use this information to specify the correct animation frame. Movingangle could be the answer, but I am not setting different angles for it.

    Thanks in advance.

RBuster's avatar

RBuster

Early Adopter

Member since 29 Oct, 2012

Twitter
RBuster has 2 followers

Connect with RBuster

Trophy Case

  • 12-Year Club
  • 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
  • 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
  • RTFM Read the fabulous manual
  • Email Verified

Progress

21/44
How to earn trophies