Kyatric's Recent Forum Activity

  • Search for "bounce", "bouncing", "bouncing ball".

    There have already been topics about a similar subject you can learn a great deal from.

    I remember someone even posting a formula to a pong ball behavior type, in events.

  • I'm not sure parallax is the best way to go.

    To see some platformer/parallax use, check out C2's example folder.

    To your issue :

    Multi-Sprite-Scrolling.capx

    Seamless scrolling (not fullproof though, gap has come back, I'm not sure why).

    Guess it's a good base to work from though.

  • No need to be sorry, we all do mistakes, don't beat yourself up.

    I'll move the topic to the "How do I" section now, trying to let the bug section for... bugs <img src="smileys/smiley1.gif" border="0" align="middle" />

  • DungeonCrawler_Fixed.capx

    I've commented the capx.

    You should use subevents.

    Also as you had your code done, your array was looped through every tick.

  • I strongly suggest using FireBug as "console" in firefox.

    This is somewhat of an "official" extension, and it gets uploaded along the browser.

    Very convenient tool, especially when dealing with CSS and/or plugin/behavior developpement.

    It raises errors consistantly when there are and give a precise description/location of where the error happened.

  • There isn't yet a reference to how to move a sprite accordingly to a path because, truth to be told, I haven't yet implemented it in a way I'm satisfied with.

    Anyway, you have the correct logic idea. The "flaw" in your capx is that you make all the movements through the path in a single tick (as you are using a "Repeat loop").

    So far, I've followed the same idea, just letting the movement itself handled by an 8direction behavior.

    I simulate right, left, up or down arrows pressure by checking the actual distance between the sprite and the PathFinder.getCtXPathList (and getCtYPathList).

    Pseudo-code:

    If Sprite is on right of NextCellInPathList => Simulate left key.

    If Sprite is on left of NextCellInPathList => Simulate right key.

    Etc...

    As I said, I yet have to implement a satisfying way of incrementing (in your case) indexPath when the sprite is rightly positionned on the next cell of the pathlist.

    Instead of going through emulation of the 8dir behavior, you might as well calculate yourself the distance and angle to go (through system math expressions) and apply some bullet behavior, or even move it in events each tick.

    That's the tricky part where I don't have a releasable solution yet. Let me know if you can come up with something.

  • Hello Ashley,

    I believe taking time off means you're totally away! No popping in, popping by.... Besides, I believe that you have left things in Kyatric's capable hands. So, go get lots of R&R and Kyatric can tell you all about it when you get back on the 8th!

    Enjoy yourselves!

    Sorry, but you have it wrong.

    I'm just a moderator, not an admin, and not in such a close connexion you seem to think with Scirra. I'm not the only moderator or capable person on this forum, far from it !

    I'm just kinda "specialized" in C2 and I am quite active on this specific section of the forum, knowing where to look for answers when ones are needed (thanks to an awesome function named search <img src="smileys/smiley1.gif" border="0" align="middle"> )

    Also Ashley is never totally away.

    And the way he will catch up with the forum is like everybody else, by reading it.

    I'm confident we will hear from him before the 8th ^^

  • Wink: is your browser firefox ?

    Try to set event2 => TiledBackground.X to TiledBackground.X - int(60*dt)

    The int() function makes it so that the result of the operation is always an integer (not a float).

    This seems to make the "gap" disappear".

  • Wink and MeJustMe: if you post capx of your projecs, it might be easier to give you some help.

  • I'm afraid you can't.

    Exported files are not meant to be reopened in C2. Only caproj and capx.

  • This topic is about your issue.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • This post answer your question.

    It is planned, not yet implemented.

Kyatric's avatar

Kyatric

Member since 18 Aug, 2010

Twitter
Kyatric has 583,402 followers

Connect with Kyatric

Trophy Case

  • 14-Year Club
  • Jupiter Mission Supports Gordon's mission to Jupiter
  • x15
    Popular Game One of your games has over 1,000 players
  • Famous Game One of your games has over 10,000 players
  • x27
    Coach One of your tutorials has over 1,000 readers
  • x10
    Educator One of your tutorials has over 10,000 readers
  • x2
    Teacher One of your tutorials has over 100,000 readers
  • RTFM Read the fabulous manual
  • Great Comment One of your comments gets 3 upvotes
  • Email Verified

Progress

23/44
How to earn trophies

Blogs