Pokemon/Brawl Mash-up Help

0 favourites
  • 6 posts
From the Asset Store
75 power-up sound effects; bonus and notification sounds, fanfares, harp glissandi, stabs, clock ticks, etc.
  • I want to create a game with a similar overhead view as Pokemon Fire Red but platform battles like those in Super Smash Bros. I've tried creating tall grass with a custom list of Pokemon that could be encountered and then a Pokemon from that list is randomly chosen and goes to the brawl layout. Also this only happens after a certain amount of steps, I've tried to set it up so the more steps the more likely you will encounter a Pokemon.

    Download by clicking "Download Original"

    So how do I get my players chance of encountering a pokemon to increase the more steps he takes, and how do I make a random pokemon encounter selected from a list?

  • Hmm I have some ideas of how to get this to work. You could use a 2d array to store the lists of pokemon and then make invisible sprites pick a row from the array (based on an instanced variable) and then randomly pick a pokemon from that list.

    That's just a rough idea of how I'd do some it.

    Bleh, actually I'll just try to make an example for you :)

  • That's an easy one

    Global encounterChance = 0
    Global maxChance = 10
    tallGrassColl | On collision with Player Col
       System | encounterChance < maxChance  -> add 1 to encounterChance
       System | random(maxChance) < encounterChance -> Go to Brawl

    I think it makes more sense to start from 0 to go to maxChance...

    so basically you will have encouterChance/maxChance ... Chance of encounter :D

  • That's an easy one

    Global encounterChance = 0
    Global maxChance = 10
    tallGrassColl | On collision with Player Col
       System | encounterChance < maxChance  -> add 1 to encounterChance
       System | random(maxChance) < encounterChance -> Go to Brawl

    I think it makes more sense to start from 0 to go to maxChance...

    so basically you will have encouterChance/maxChance ... Chance of encounter :D

    Thanks it worked!

    But there is still the problem of having a select amount of Pokemon for each grass and randomly choosing from it.

  • Many ways come to mind

    Oh wait... No I can only see one way

    1/ you put all your anim in the same sprite. You name your anim like that:

    PokemonName_RStanding
    PokemonName_LStanding
    PokemonName_RRunning
    PokemonName_LRunning

    (replace PokemonName by each of your pokemon.... name should match the list I will mention below)

    2/ you create a global variable named "PokemonName" type text

    3/ you create a global variable named "PokemonList" type text

    4/ you keep a .txt file with you with the list of your pokemon (for easy management)

    pikachu
    psychokwak
    dracofeu
    smogogo
    ...

    (yes I know... french version)

    Brawl event sheet :

    5/

    start of layout 
             -> set PokemonList to (and you copy/paste your list)
             -> set PokemonName to tokenat(PokemonList,int(random(tokencount(PokemonList,newline))),newline)

    6/ you prefix all your animationName call with PokemonNam&"_

    like :

    set animation to PokemonName&"_RStanding"

    It should work fine (:

    The idea is to use a string which contain a the list and use the indexation capabilities of the tokenat(string,index,separator) function

    The separator is the newline special word which detect... new lines :D

    Neat stuff... I should write a tuto on that... (actually I started one some weeks ago an... well... lazy :D)

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Will not let me "Download Original" just gives me this error -->

    Error 310 (net::ERR_TOO_MANY_REDIRECTS): There were too many redirects.

Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)