procrastinator's Recent Forum Activity

  • I think this is what you're after. Hope you understand my drunken commenting ;)

    dl.dropbox.com/u/666574/array%20filling%20in%20gaps.capx

  • Array is best then.

    Here's a capx for you...

    dl.dropbox.com/u/666574/multilingual%20array.capx

    Hope that helps some.

  • That would be the worst way possible. What if you have 100 pieces of text that need translating? ;)

    Arrays and the Dictionary object would be your best bet. XML would help you but not sure how much you know and it can look quite complex at first. I haven't played too much with the Dictionary object but it sounds like the sort of thing you need. I may be wrong though. On that note, I think I'll toy with it some tonight.

  • Why are you destroying the blocks under "secondary generation"? To give more white space? I just can't see why those events are in there tbh. You're testing for collisions that will never happen because you have the "immovable" property set for the blocks so they'll never fall. Also, you've created them in a grid fashion, so they will never collide.

    Take out the events under Secondary Generation, or disable them. It works for me.

    As for the placement of the player, set a random XY after the blocks are created, then check if it's overlapping a block - if so, do another random XY and so on, until it's not overlapping. Or an easier method would be to place the player at specific coords, then in your block creation events, only create a block if it doesn't overlap the player.

    Hard to know if I've given the right answer. It looks like you're trying to create random platforms for the player to jump around on, in which case, my answer would be correct ;p

    As for your array knowledge, it seems pretty solid to me.

  • Hard to say without a capx.

  • Take that While condition out? I've NEVER had a need for While in Construct, and it certainly doesn't need to be used there since on collision is only triggered when a collision happens so it's basically redundant. Besides, it would need to come before the condition being tested, not after.

    As I see it, your condition is reading -

    On collision

    AND

    While

    While what? The While condition is causing it to loop infinitely causing the freezing of the game because it's stuck there.

    While is useful for sorting like (excuse the simplicity but hopefully you get the idea)..

    sorted = FALSE

    While NOT sorted

    ..Sort through hiscores

    ..If hiscores are in proper order then sorted = TRUE

    While End

  • Sounds nice thanks. Will give it a go when I get further into C2.

  • Thinking more about it now after reading the discussion after my reply, I can say yes, it'd be better to store each weapon with its own value.

    currentWeapon = "gun"

    and "gun" would be the name of the sprite so it would be easier to match and pick. At least that's how I did it in a shooter I started in CC. The problem with using values to represent the weapontype is it's harder to read through events and debug.

    Unless I'm still misunderstanding because I can't check out the capx.

  • My minds eye isn't all that great and never really thought about the connection tbh. Could explain why I do find it hard to resist the temptation of opening up Photoshop. Sometimes I do give in way too early in the prototype though.

    Glad you brought that up. Now that I'm aware of it, maybe I can control my urges..

  • No problem.

    As for sqiddster's game (nice game btw sqiddster!), it looks like it'd need more than the 100 events limit in the free version.

  • I've played some solitaire games in the past and sometimes I couldn't win, sometimes I could. Not sure if the placement was random or what, but it won't hurt to just use random placement and go from there. Once you get the placement in, it'll be easy to change it up using an algorithm which allows strategic placement. You just need to get the basic framework going.

    As I said, when the mood takes me, I'll have a bash at something as it is something I've often thought about, but never attempted.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Yes, it's always the obvious things you don't think about. I get that a lot believe it or not ;p

    Glad I could help. Just shout if you have any more problems.

procrastinator's avatar

procrastinator

Member since 29 Dec, 2008

None one is following procrastinator yet!

Connect with procrastinator

Trophy Case

  • 15-Year Club
  • Email Verified

Progress

16/44
How to earn trophies