brunopalermo's Forum Posts

  • It's a bit hard to understand what is hapenning without a demo or capx. Are you using scrollTo after you move the player? I can't really understand what's going wrong on this case... Sorry.

  • So in fact it must be LESS complex than that... If it picks dumb questions, I mean. Most of those are designs of the 20 question game, actually...

    [EDIT]

    Hey dop2000!

    Been playing Akinator for the last hour and it's actually far more stupid than it should be. Contrary to 20 Questions, it apparently does not "learn" new characters.

    Also, it does not rule out questions, just characters. What means it will ask you if your character is from a movie and, after you say it's NOT, it may still ask if it's in a Horror Movie. Which just shows it's far more simple than an AI.

    Considering the behaviour I saw, it probably does use a match attributes system, as I mentioned before. But not a very good one, the same goes for their DB. During the hour I played it failed repeatedly to guess the characters that I picked and, when it did, it was on the second or third attempt.

  • However, Akinator is known for its complex AI and programming such AI must be a very hard task, for which C2 is probably not the right tool.

    In fact, Akinator works with a complax tag-and-match system. It has is a huge list of people, and the answers for those questions for each person. Also, it has a question list, saying which attribute is related to that question, from where it picks the questions to make as it rules people out. Like "20 questions", it matches the answers you give with the answers it has for each of the characters.

    Let's preview its behavior in a much smaller context:

    Characters

    Mickey: Rat, Has Girlfriend, Male

    Minnie: Rat, Has Boyfriend, Female

    Donald: Duck, Has Girlfriend, Male

    Daisy: Duck, Has Boyfriend, Female

    Goofy: Dog, No girlfriend, Male

    Pluto: Dog, No girlfriend, Male

    Questions

    Is it a rat/dog/duck?

    Does it have a romantic partner?

    Is it male/female?

    You think of Donald.

    (It randomly picks a question)

    Q: Is it a dog?

    A: No.

    (It rules out Goofy and Pluto. And it rules out the question about Romantic Partner, since ALL AVAILABLE now have one. And picks another question)

    Q: Is it male?

    A: Yes.

    (It rules out Daisy and Minnie. And, since it has only 2 possible characters, it picks a question that will tell it about an attribute that's different for them)

    Q: Is it a duck?

    A: Yes.

    (It rules out Mickey and, having no other character that fits the description, it states your character)

    Is it Donald Duck?

    The thing is, you must have a large enough set of characters with a large enough set of attributes that makes each of them unique. For instance, the set we used at the example, would not be a good one, since Goofy and Pluto are, in the eyes of the AI, equal. If we added another attribute regarding number of legs (2 for Goofy, 4 for Pluto) it would be a better set.

    So, in terms of development it's very simple, but building this character data bank is a HUUUUUGE job.

    Cheers!

  • Hey TylerJS!

    You should definitely consider storing your upgrade info on an array or string and have just ONE event for upgrading. It would save you a ton of work and is infinitely scalable.

    For instance (using string):

    upgradeCosts = "30,100,230,500"
    currentUpgrade = 0
    
    On Tap on object "UpButton"
    Money >= tokenAt(upgradeCosts, currentUpgrade, ",")
            Add 1 to currentUpgrade
            Subtract int(tokenAt(upgradeCosts, currentUpgrade, ",")) from Money
    [/code:1ve4qf1v]
    
    Hope that helps. Cheers!
  • Hey Keus!

    If you just have a list of skills which increase in level, just use a dictionary which an entry for each skill and entry value for level. If you need them to have dependencies, like a skill/talent tree, use an array to store skills, their levels and their dependencies.

    It's hard to be more specific without more info on your project.

    Hope that helps. Cheers!

  • Hey guannstar!

    I'm not sure if I get what you need... You want to be able to write the name of an object and return the column and row they are positioned at, is that it? Could you show a screenshot of your game?

    Cheers!

  • Hey marcosfl!

    Not sure this is what you need, but...

    https://www.dropbox.com/s/1xwrduwu0e18t ... .capx?dl=0

    I hope this helps. Cheers!

  • Hey argail!

    You should definitely use an array to store the map and check array neighbours to build your "camera view" instead of checking for overlaping...

    Here's an example of array use for that.

    Didn't implement all controls. Just click to advance. Also, I couldn't get the exact rules you're using for building the camera preview, but I guess you can easily adjust it.

    https://www.dropbox.com/s/hjvvd742zfo4v ... .capx?dl=0

    Cheers!

  • Yes its possible, but there should be a way to tell when to zigzag. I wouldn't recommend that it creates a new line when you change direction (even though its possible) because of usability issues.

    In the following example, you can zigzag by right-clicking, without releasing the left button. Does this work for you?

    https://www.dropbox.com/s/l1so4t4lkznup ... .capx?dl=0

    Cheers!

  • Hey Hadyurik!

    You could try to create a sprite with several animations for the various objects you have and randomizing these animations (not the frame) on creation.

    In this .capx I randomly put two types of enemies on screen, each of them havng two animations.

    https://www.dropbox.com/s/hbtwcx671lbe7 ... .capx?dl=0

    Hope it helps. Cheers!

  • Hey maxwell88!

    I'm not sure what you want to do here. dt is not something you can set, since it's variable and calculated according to performance.

    As far as I know, all Behaviors use dt. If you add other actions, just include the dt variable on your formula and you'll be fine.

  • Hey timcs!

    Not a big fan of Wait actions... I'd stick to dop2000 's second solution, having a variable that tells which spawn points were used...

    Cheers!

  • Hey beguinner!

    Depends. There are some ways you could do that. One of them is using the canvas plugin to draw the line. Another one would be to have a very small square sprite and set its width and angle according to the mouse position.

    The .capx below shows the second method I mentioned above.

    https://www.dropbox.com/s/tyvhmhfxcli12 ... .capx?dl=0

    Hope it helps. Cheers!

  • Hey yolkgames!

    It seems you have a sprite with multiple frames and want to advance to the next frame everytime you cklick that object, am I right?

    Check the .capx below. Click to advance to the next color and right-click to go back to the previous one.

    https://www.dropbox.com/s/v3afdy5mxxqyn ... .capx?dl=0

    Hope it helps. Cheers!

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Yeah... Ropascucci, I'll have to agree with dop2000 here. This tutorial seems to be a really complicated way to achieve something that several behaviors already do.

    For instance, you could use 8 Direction behavior and the "Simulate control" to do exactly that.