TwinSix's Forum Posts

  • However... I have another issue if you would like to continue this thread.

    I got the toad to move in the direction I wanted, and he "hops" - it is all perfect. However, I cannot get him to "mirror" his direction and proceed with his movements in the opposite direction.

    My context:

    set a Boolean (direction_left) with an initial value of true. Then I created a sprite to use as an invisible collision wall (collision_enemy_left).

    When the toad touches ("on collision with") the invisible wall, I "toggle" the Boolean to false

    Then, I repeat the same events as previous, only with the condition that "direction_left" is false (I inverted the event). Since the condition is false, I just reversed the enemy's movement (toad.X+.05).

    The enemy's animation cycle works, all the way up to him touching the wall. When he collides with the wall, the idle animation begins, but he just sits there, cycling the idle animation, and the sub events are not initializing.

    Would you have any idea what I am doing wrong?

  • OMG it worked! THANK YOU! I looked up the "on animation" conditions you mentioned and set them up in the pic below.

    I turned off "looping" for the animations

    set the "idle" animation to play "on created", then when that finishes, I set the "move" animation to play, and looped it. The tricky part was setting up the movement, but I found the proper syntax, and now my toad hops! THANK YOU for your help and patience!

    Uploaded pic for future reference

  • Thank you for replying!

    The context (I believe):

    When the screen starts, I want the toad's idle animation to play once, then he "moves left" (hop animation) for 16 pixels (or some very short distance), and then the hop animation stops, and the idle animation begins again, for one cycle, and I want this to continue until the toad bumps into my collision wall and turns around (mirror) and repeats the action in the opposite direction.

    I set up the enemy with the platform behavior, and when I do the tutorial's "Every Tick" function, the toad just glides across the platform, and I would like to make him hop, then pause, do his idle animation, then hop again.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Sorry for the long title, I'm confused how to phrase my problem briefly. I drew an enemy (a toad), and he has an idle animation, and a hop. I want him to cycle the idle animation ONCE, then hop to the left ONCE, and repeat ad infinitum until he hits my collision wall to reverse (mirror) his animation, or the player stomps him. I cannot figure out how to set up the event sheet for this.

    I'm new to this, so please keep that in mind when typing answers - I may not know lingo or acronyms.

    Thank you

  • N00b rely, but I can see several ways to do this. I guess it depends on what kind of game you are looking to do? Old school like Shadowgate with no movement within the room, or perhaps like D where there is rotation in the room? I assume from your post that you want a more simplistic approach (like Shadowgate)?

    You could do like the previous reply and use global variables to track certain interactions and “quest” items. For the screens, you could use square sprites as interactive zones (keep invisible) and then when the player clicks the various squares, it teleports them to the next area (picture). I have wanted to make one of these types of games for years, myself, so keep us(me) updated!

  • igortyhon if you have the time, would you mind explaining why I need to use the "set Width to self.width*1.01"? When I was trying to figure this out, I was using the "scale" function, and it was not working out. Would you be able to explain why scale did not work, but your method does? Thank you again for your time and help.

  • Thank you! I'm happy that I at least had the basic formula correct, although I didn't which function to use. Thank you so much!

  • Total noob. I just finished the "Ghost Shooter" tutorial, and am trying to add new things to the game. I'd like to see how to get the "ghosts" to slowly increase in size the longer they remain on the screen, and I cannot figure this out. Help? Also, as mentioned, I am new, and know almost nothing about programming.

    Tagged: