Tokinsom's Recent Forum Activity

  • Sounds a bit redundant don't you think?

  • I've been trying to make a ball movement similar to what you'd find in a breakout game and..wow, it's more difficult than I expected. Thing is, every example and tutorial I've found uses the bullet behavior which, unfortunately, is too wonky for an actual breakout game; the ball tends to "stutter" and teleport in tight areas and the bounce is not always accurate.

    That said, I was wondering if anyone has programmed or knows how to program their own ball movement with just events. I read through a few flash tutorials and came close, but I couldn't get an accurate bounce off the walls and bricks, just the paddle. Thanks for any help!

  • 1) TMX Importer (Can't make any of my games without it!)

    2) Canvas (Very useful for a number of things.)

    3) Sprite Font (Makes bitmap fonts super easy.)

    Would love to see official versions of these as they all have their quirks, especially with the latest C2 releases :<

  • procrastinator Well the player grabs the ledge every time now but it's not perfect.. your .capx might still be useful!

    Will check out the example soon, I have to update C2 first.

  • Got it working by removing some unnecessary conditions ^^;

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Trying to figure out the best way method for ledge-grabbing. Currently I'm using a 2x2 detector and when it overlaps a solid, yet isn't overlapping a solid at 0,-2, the player grabs the ledge. Problem is it doesn't work well when falling at high speeds and sometimes activates when falling along a wall. I understand why..just not sure how to fix it :L

    I've looked at some examples around the forums but they seem to have the same issues.. Any ideas?

  • For C2 you'll want to use RexRainbow's .tmx importer to make your rooms/areas individually and dynamically load them via AJAX and project files (while destroying old rooms), then code triggers/doors and transitions in between. The minimap can also be created using Tiled. There are numerous ways to do it but this made the most sense to me..

    In CC you're probably just going to have to make your own editor, save rooms to an array, .ini, hashtable, etc. then load them dynamically as above.

    Sorry I don't really have any examples lying around...it's very complicated to set these up ^^

    Btw is that you, Mario?

  • Aha. I'm using a custom bitmap font so that would explain it. Not sure how that's supposed to work with the spritefont plugin though..What would the arrows be on the charmap?

  • Ashley Thanks for fixing this in r125. There still aren't any strings for the arrow keys, however. Could you please add those in the next build?

  • To avoid performance issues from lots of tiles I paste the tiles into a canvas, then load the image to a large empty sprite, then destroy all the tiles & canvases..not sure you'd be able to do that for a minecraft clone though, since tiles are destructible. Might look into chunks. Disabling off-screen solids might help too.

  • Ah. I didn't try it with anything other than letters and the arrow keys. Not really sure how to go about that without an event for every key :

    Ashley would it be possible to add the rest of the strings at some point?

  • I'm using Keyboard.StringFromKeyCode(Keyboard.LastKeyCode) to retrieve the name of the last key pressed, for my control config.

    For whatever reason it works perfectly for everything but the arrow keys; up, right, and left return a blank string and down returns "(".

    Same results in 2 projects. Anyone else have this problem?

Tokinsom's avatar

Tokinsom

Member since 6 Jun, 2010

Twitter
Tokinsom has 12 followers

Connect with Tokinsom

Trophy Case

  • 15-Year Club
  • Entrepreneur Sold something in the asset store
  • 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
  • RTFM Read the fabulous manual
  • Email Verified

Progress

21/44
How to earn trophies