andreyin's Recent Forum Activity

  • eli0s

    No problem! Also, when your sprite is mirrowed, you should use a negative angle in anglelerp, like this:

    <img src="http://i.imgur.com/fT6wHwQ.png" border="0" />

    Cheers!

  • Nice! Congrats!! :D

  • When using lerp for angles you have to use anglelerp! This got me stumped a few months ago too.

  • R0J0hound

    Oh wow, I see it now. All this math is too much for me lol.

    Thanks!

  • R0J0hound

    Yeah, I meant why, sorry.

    It's just so hard to get my head around that, I understood most of your code but this part...

    I get how you're generating the map though;

    1. Event sheet "load rooms" is called, new array is created, saves every wall and each exit;

    2. Map is generated on "Event Sheet 1" and based on that generation, you get rooms based on the exits it has (random door that has the same number of exits of the square on the map you already generated).

    I understand now that you can use booleans as 0 or 1, I had no idea.. but still, let's say that we have a room with 4 doors. That picture I posted would give a result of:

    roominfo.exitE+2*roominfo.exitS+4*roominfo.exitW+8*roominfo.exitN

    1+2*1+4*1+8*1 ?

    If you add and multiply it like that how can you still know which exits exist in which room?

    Sorry if that's simple, I'm not a very good programmer haha!

  • R0J0hound

    Hey, sorry to bump this old thread but I've been looking into map generation and I loved your code, it does exactly what I want. I've been studying it so I can update it to use tilemaps instead of saving every wall to an array, but some parts got me really confused, like this one:

    <img src="http://i.imgur.com/eXQXBib.png" border="0" />

    How are you adding booleans like that?? D:

    Also thanks for the help!

  • OH wow, are you remkaing Akuji on C2? That's awesome :D

    Nice effect too!

  • You can open projects you saved in new versions using old versions, just save it as a project (not as a .capx), open the .caproj file and edit this line:

    <saved-with-version>15500</saved-with-version>

    Of course, in your game it must be 15600 or something.

  • gbataille

    You mean the .js code for it? It's at

    C:\Program Files\Construct 2\exporters\html5\plugins\tilemap

    Or wherever you installed C2.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Burvey

    Can you post the simplified .capx so people can just download it and test?

  • I'm still on Win8 and it works.. dang, wonder if it's broken on 8.1?

    Can you reproduce it by making a simplified sample .capx?

  • The problem is that if you manually set the animation speed, it'll take positive values as a "forward speed" and negative values as a "backward speed". I'm not sure if this is a bug though..

andreyin's avatar

andreyin

Member since 11 Jan, 2010

Twitter
andreyin has 1 followers

Connect with andreyin

Trophy Case

  • 14-Year Club
  • Forum Contributor Made 100 posts in the forums
  • Forum Patron Made 500 posts in the forums
  • Regular Visitor Visited Construct.net 7 days in a row
  • RTFM Read the fabulous manual
  • x3
    Great Comment One of your comments gets 3 upvotes
  • x2
    Delicious Comment One of your comments gets 10 upvotes
  • Email Verified

Progress

21/44
How to earn trophies