brendanpoke's Recent Forum Activity

  • Hi everyone,

    I'm making a game with some "anime" style characters with a text table showing the dialogues.

    Every time I create a character I have this problem and I have to do as in the image below.

    I create the character with the function through a string but since it was created like this I can't locate it to assign the animation I want. So I have to create another function and I have come up with this method.

    I'm wondering if there's an easier and more efficient way to do this. For example using a script, but I've done only a few and haven't learned enough in javascript yet.

    How to do this?

    How would you do? Do you have a better idea?

  • Oooh!

    I had not thought of that! simple and effective, Thank you!

  • Hi everyone.

    I've been looking for several hours how to find a sequence of characters in a text, but I want to know how many times that sequence is repeated.

    Example : "qwedshducbskawegbnweuqilp"

    in this string there are 3 "we".

    The letters are all attached without spaces. I could use find or replace with an empty string and count how many times "we" was replaced by "". But isn't there a faster solution?

    Maybe using Regex?

    Or solution using a script would also be fine.

  • Hi everyone,

    I have been programming for several years with Construct3 and now I would like to try to publish a paid app on the play store, I have already published one for free.

    But I still have one thing I'm wondering.

    The sound effects and some of the images in my game are taken from the internet.

    For the images I could still make very similar drawings, color them and replace them in the video game,

    But for the sound effects I wouldn't know how to do it, some I don't even remember where I found them, others I got by recording Anime in some clips, I always do this, using Audacity, I record a few, then I cut them and insert them into the game . Some I may have taken from sites that ask you to buy them in order to download.

    Well, I'm thinking of publishing it like this, what do you think? Could someone come and say "hey you got that sound effect from my site"?

    Excuse me but I don't know anything about these things and I don't know who to ask, also because I do everything by myself with the video game.

    Has anyone published a paid app with Construct3?

  • Studying it a bit I figured out how to do it, even if there are still some flaws.

    I post the project I made,

    If you have any advice for me let me know.

    https://drive.google.com/file/d/1DD9o77SNSVkrRr4-mHjMiuP1nESPonF1/view

  • Hi!

    I would like to create a special effect directed at many objects in my game. I think I should use the canvas object but I don't know how to do it.

    I want when an enemy is destroyed to create 3 parts of it like as "pieces of cake" of the image.

    Here is a gif of my game:

    https://docs.google.com/document/d/1UQ2puCoGGa6UgZRFayAFv7xOHgMNqZhUeBNto9OEBtc/edit

    And the events:

    I want to create this effect for a family of objects and have the art canvas create 3 or more images automatically if it's possible.

  • You do not have permission to view this post

  • Ok.

    I had tried all the syntax except the right one,

    because my function's parameters are strings and I have to put " for each parameter

    runtime.callFunction("test","parameter1", "parameter2");

    Thanks for all the examples.

  • Thanks for the replies.

    Could you also tell me what is the correct syntax for the parameters?

    I still don't know javascipt very well and I don't understand what "e" means ( (...command.split(",").map(e => e.trim())) )

    Shouldn't the syntax for entering the parameters also be the one in this image? I tried but it doesn't work. Instead your example does.

  • Hi,

    i found this topic where the answer was given which says to use scripting.

    But I tried and it doesn't work, I'm not very experienced in scripting so can you explain me how to do it?

    I'm not clear if I also have to write my function via script or it's fine with the construct editor too (it would be easier that way).

    construct.net/en/forum/construct-3/how-do-i-8/call-function-name-146123

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • It doesn’t work because everything within quotes is just text and not an expression. So what’s happening is basically int(“object.x”), and when text is converted to a number it becomes 0 if no digits were found.

    Maybe you meant to build the text you saved to the dictionary.

    “Smoke=“&object.x&”,”&object.y

    Thanks so much!

    Now I understand better how it works :)

  • Yes, I made a mistake, but i fixed it and it still doesn't work.

    But I know because I've tried it before...

    Also just using "Text" to find the x coordinate of the object but nothing.

    I could fix it by creating an extra function that identifies the object if it's inside a family, but I'd like to know why it doesn't work like this.

brendanpoke's avatar

brendanpoke

Member since 7 Aug, 2019

Twitter
brendanpoke has 1 followers

Trophy Case

  • 5-Year Club
  • Regular Visitor Visited Construct.net 7 days in a row
  • RTFM Read the fabulous manual
  • Email Verified

Progress

8/44
How to earn trophies