lukezero's Forum Posts

  • Hi lukezero I haven't personally gotten into that style of game yet, but I did find this tutorial which may be a good place to start and it has examples. Hope it helps!

    https://www.construct.net/en/courses/displaying-dialogue-games-36

    Thanks for the tutorial!

    Already seeing it here! :D

  • Hi guys!

    If anyone has and can share an example CAPX, I appreciate it!

  • Does anyone have a suggestion?

  • Hi guys!

    I'm developing an educational Endless Runner whose character is always standing in the same position with the running animation active. In the background there are layers with Parallax effect to simulate movement (image 1 below).

    There are only two obstacles, randomly generated: boxes and drones. Colliding with the box takes it to the left corner, and you can jump over it or walk over it whenever you want.

    I created a simple routine that automatically places the character in the original position (x=280) (image 2 below). However, the routine below still doesn't work perfectly, making her stand still on a moving box or be teleported abruptly forward.

    I have two doubts:

    1. What's the best routine to spawn the drones within a given area on the Y-axis (without making the drones spawn just above the screen).

    2. What do you suggest to perfect the box routine (bump and walk on it)?

    Thank you in advance for your attention and collaboration.

    Image 1

    Image 2

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • You do not have permission to view this post

  • You do not have permission to view this post

  • your NPC_HUD animation names are starting with NPC01. But your random creates 0,1,or 2. Try to change set level to 1+ floor(random(3))

    Thanks for the tip, man! :D

  • https://www.dropbox.com/s/g1luc68katnnebe/NPC_Example_lukezero.capx?dl=0

    Thanks, dude! I understand now! I've been having a hard time lately programming because I've a lot of roles in this project and I'm really stressed out.

    Thanks a lot for the help! :D

  • It's changing because it's outside of the trigger, and the value is changing randomly.

    In the original project there is no random change. Even so, it is not working properly. :(

    Can you send the corrected CAPX?

    I want to better understand what's going on with the trigger. ^^

  • So, I don't know if this was a demo-translation typo, but the animation name is wrong. It should be "NPC0"&NPC.Level.

    Yes! In the original project it's named correctly. I corrected it here (and I uploaded), but although the NPCs' HUD changes, it is not stable. It keeps changing involuntarily. :(

  • OK, I see now, it's the animation.

    Exactly! The instance variable (of the NPC object family) 'Level' is associated with each of the 3 animations of 'NPC_HUD' object.

  • (My reply seems to be hidden, so...)

    Can you use another file service? 4shared wants to change notifications in my OS, and I'm not going to let it do that! Dropbox is the safe standard.

    blackhornet

    Sure! Thanks, dude! :D

    drive.google.com/file/d/1psXHEVFUgJe49Vl8mjVn4EnkeezwjCDy

  • R0J0hound blackhornet

    Sorry to bother you, but do you have any suggestions for solving this problem?

    Thank you in advance for your attention and collaboration. :D

  • Would you mind to send your project so I can take a look into it, thanks

    Tomycase

    Thanks again, dude! :D

    I made an example based on my game, for you to check the problem. Below is the download link:

    4shared.com/s/fIFsOAnRcea

  • To begin with, you up arrow event should be at the top, it's no use to put it under an every tick event;

    Next, you picked the wrong object in the pick event, you must pick the NPC object and not the HUD itself, as it is the NPC that contains the variable "NPC_State", so in the action event the game knows which NPC to pick to set the HUD animation name;

    It still didn't work, dude. :(