akjoltoy's Recent Forum Activity

  • Sorry to bump a super old thread. But this came up as a top result when I was searching for information regarding card deck in Construct so I should point out.

    The initial capx in the OP does not do a random shuffle of the deck. It's easy to see, mathematically that it's not doing so.

    That event group has a comment at the top explaining two algorithms that are mathematically sound. But the execution does not implement either of them.

    The indexes need to reference "shuffle" for one thing.

    Shuffle a few times and you will notice that many if not most of the cards are in their original spots.

    Overall I found it to be a nice program and as a beginner to construct, found it educational. But the shuffle was not random or mathematically fair.

    Again sorry to bump an old thread, but it needed to be done and was right to do.

  • Thanks that eliminated my issue at a rate of one issue per second.

  • I need to have, as a condition, a test for the distance between the sprite and a certain target point.

    Currently I'm doing it in this ugly way:

    Four conditions:

    target X < self.X + 10

    targetX > selfX - 10

    targetY < self.Y + 10

    targetY > self.Y - 10

    This works but I feel like if I could have an arbitrary expression, then I could simply have one condition that went something like Distance(self.X, self.Y, targetX, targetY) < 10

    But what kind of condition do I need to make where I can enter an arbitrary condition. This seems like a very powerful thing one could do (arbitrary expressions on a particular obect for a condition. But I don't see a way to do it.

  • I got it working, but I don't know if my way is good.

    Basically I inverted an absolute value inequality into two inequalities (two for x, two for y).

    As I type this I realize I could have just done distance(targetX, targetY, self.X, self.Y) < 5

  • How do I check if an object is within say 5 pixels of some specific location?

  • Oh whoops.. you're lucky I was using the wrong folder.

    All settled now

  • I misread it as "assets"

    There is no effects folder in my main construct 2 folder.

    Additionally, I created one and pasted the files into it to no effect.

  • I'm trying to use

    The instructions say to simply extract the archive into your assets folder. I did this but when I load up construct and add effects I don't see a CRT one.

    Is there another way to apply custom shaders than the standard add/edit effects?

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Awesome thanks again

  • How do I include "every [delay] seconds" in the conditions for the grow event?

    Currently I have a Coin event:

    condition: Is Grow

    action: Coin -> Set size to (self.Width + 1, self.Height + 1)

    This works fine but what if I wanted to do it your way where it has a delay. Would that be another condition? I don't see a way to do an "every delay seconds" type of condition for an object. Only for system

  • Ahh an instance variable I see. I was thinking global variable for some reason

    Thanks that should work perfectly

  • Won't this make all coins on the screen grow and not just the one the player touched?

akjoltoy's avatar

akjoltoy

Member since 22 Aug, 2015

None one is following akjoltoy yet!

Trophy Case

  • 9-Year Club
  • Email Verified

Progress

10/44
How to earn trophies