DogeDev's Recent Forum Activity

  • Ay bois, so, this time i want to do an type of system for my game, that detects if the game is closed, like to count how many times the game was closed. I don't know a way to do this, either i have tried some, if you know how, please tell me!

    Objective: If the player closes the game, or, the game closes itself, will detect it, then, apply an type of value to a LocalStorage.

  • Hi, you can use the expression "tokenat", it uses 3 parameters : the text source, the index and the separator, it can be anything, for example if you put ";" behind each line and specify it as a separator, "text 1" will be index 0, and will be returned if 0 is used as index parameter

    That should work, but, can you make an example capx for me? Like, i'm not sure if i could make it right, so, if you can would really help me. Also, thanks a lot for the tip!

  • Objective: Load a text in a .txt file, and, after loading it, load the next line.

    Example:

    After loading the 'Text 1' in the screenshot, will go to the next line, and then load the 'Text 2'. Will go on until it stops after loading the 'Text 10'.

    Tagged:

  • You need NWJS. You can check if the file exists in NWjs.AppFolder, NWjs.ProjectFilesFolder and maybe NWjs.UserFolder&YourGameFolder

    If the file is not there, just display a message that the file is not found. Because searching the entire PC is a difficult task and will take a very long time.

    Thanks a lot bro! Gonna try it out.

  • Objective: Find an specific named .txt archive in someone's computer. Like, when people download my game, in the game's folder will have an archive named Chat1.txt, I need to somehow find that archive without specifying his path.

    Difficulty: I don't know a method to do this, and i don't know if i will need AJAX or NWJS to do it.

    If you can help me, i will be very grateful.

  • You don't detect the letter, just the person that is speaking. You can assign them an ID and when they speak use that ID and play a sound, or so I can decipher from the info given.

    That actually worked! Thanks a lot bro!

  • Ay bois, so, this time i need to do an Undertale Based Text Chat, like whenever a letter appears, it plays the sound of the character that is saying. I don't know how to detect if a letter is loading to play the sound or something else, so, if you could help me i would love.

  • Hello again,

    I seen your capx and I advice you to see the capx that are in examples of construct to learn a bit from them...

    there is some nonsense things as you ussing a family for enemigos while is only one sprite object! you do not need a family in this case... if you would have different sprite object then yes... families are meant to control different (same type of object).

    also none of my advice are in the actual capx... maybe you should update it

    if you got google drive and share a folder I can upload a fast version (I do not have much time but can try to help you a bit)

    Hey bro, and, just explaining some things, in my .capx i was planning to add more enemy types, so, to be faster, i already created the code with 1 sprite in the family that would be more easily to edit when i gonna add more enemies type. In the .capx that i've shared, i didn't used your code, it's on the .capx that i'm editing like with some broken codes and more, that's why i shared an old one. And, in the phrase "I advice you to see the capx that are in examples of construct to learn a bit from them..." i didn't get what type of .capx you want to me to see, like in general, i have already studied almost all fo them. And, thanks for helping me bro! I really would like more advices of what you'd say!

  • Hope this screenshot it's useful for you both

    That's worked for me! Thanks bro, but, i have another question, below is the .capx that i'm trying to create an automatic system for enemies ( like dying, spawning, collisions and more ) to use in my future games, i'm not so good at programming but please, can you review my .capx and tell me where i can optimize and improve my code? Btw, thanks a lot for you help, i really appreciated it!

    .capx: dropbox.com/s/6dt9mv13mwditpn/Sistema%20Morte%20Autom%C3%A1tica.capx

    Sorry for another language in the .capx, and, in the .capx, the way that i was trying to make the bar visible is when the enemy collides with the bullet, or, basically when he gets damaged.

  • You do not have permission to view this post

  • Hello its really simple, look:

    you need to create a instance variable on that object. when you create a new copy you just have to change that instance variable for something that identifies, for example:

    create new spriteBar

    spriteBar.variable = "player"

    create new spriteBar

    spriteBar.variable = "enemy"

    when you want to hide only player bar:

    system/pick by comparation/ pick spriteBar which SpriteBar.variable = "player"

    ---- > spriteBar set visible to invisible

    so you can pick any copy of the same object identifying it by variables and treat for the most cases as a different object

    Yes, that would be possible, but, there is a way to do it like automatically? Because, whenever is an enemy on screen, the bar is automatically created by the container, not a trigger, so, i don't know if i can do that. My objective is to when the bullet hit the Enemies family, automatically, the bar of that specific enemy shows up.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Bullet on collision with enemy, set health bar visible. Should work if they are in a container.

    Already tried that but somehow didn't worked, btw, i used family instead of the enemy to optmize my code, so, it's possible to use family and get the same result? Like with another code

DogeDev's avatar

DogeDev

Member since 15 Mar, 2017

Twitter
DogeDev has 5 followers

Trophy Case

  • 7-Year Club
  • Forum Contributor Made 100 posts in the forums
  • x3
    Popular Game One of your games has over 1,000 players
  • RTFM Read the fabulous manual
  • Email Verified

Progress

11/44
How to earn trophies