mci's Forum Posts

  • 5 posts
  • Thank you very much GAMAN, brilliant idea.

  • Hi everyone,

    I'm building a side-scrolling platform game and I need to create enemies with a little AI.

    Enemies has the platform behavior and they are meant to follow the player and once they are close enough firing at him (simple as that).

    For now the code is someting like this:

    For Each Enemy  {
       >  Has line of sight to Player
             >  Is close enough  
                  >  Fire 
             >  Else
                 > Is at Player's left
                        >  Simulate platform pressing Right
                 > Else
                        >  Simulate platform pressing Left
       >  NOT has line of sight to Player
           >  Rest
    }  
    [/code:2fllszec]
    
    In the [b]level maps[/b] there are [b]little holes to jump[/b] and [b]Solid blocks to "climb"[/b] [i](actually you just jump over them)[/i].
    
    My problem now is that I don't know how to "[b]teach[/b]" enemies to [b]jump[/b], because the move correctly, but when there's an hole in the ground and the player jumps it, they just keep walking and fall.
    Is there a method in LineOfSight, or similar, to let them know that they can also [b]jump [/b]holes and/or little solid blocks?
    
    [b]Thanks to everyone in advance.[/b]
  • Exactly what I was looking for! Thank you!

  • Hi, I'm making platform game with multiple levels.

    Because levels are a lot I was wondering if there is a fast way to build them.

    Let me explain better, I know that when coding a game in Java the fastest way to build a level is to create a .txt file and filling it with "0","1","2","3",..."N"

    Something like this:

      4                       4                        444
      4                      444                       444
         3                                    33                          
       1111        1111111111111111       111111111
    111111111222211111111111111111112222221111111111111111111111111111111
    [/code:1fhos2sv]
    
    and then associate every number to a specific object
    (in my example, "1" = ground, "2" = lava, "3" = enemy, "4" = scores/money).
    
    This is very efficient when your game have a lot of levels.
    
    [b]So here my question:[/b]
    Is there in Construct 2 a way to build levels with this method (or anything similar)  so as you can build a lot of levels fast?
    
    [i](Sorry my bad english but I'm italian)[/i]
    
    Thanks to everyone in advance.
  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Hi eveyone, I'm not new in Construct 2 but I'm new in this forum...

    Not a lot to say about me, I started making games with this software when I was young, just to try, just for fun.

    Now it's been a while and I'm a software engineering student. I can code in Java, but I think this software is so simple and so efficient that for a lazy person like me it's the best thing ever.

    (Sorry for my bad english, it's not my first language)

  • 5 posts