0 Favourites

Logic Game SHIP

  • Friends.

    I wonder, I'm riding a shooting game, style gradius or R-Type.

    The variables of ship speed, frequency of fire, life, etc.. It is best to store the object itself or global variables?

    If I create a system level for the shot, for example, I would give a variable set on the ship?

  • If you want the stats to stay between levels, you should make it global or store it in web storage (but if a player declines web storage, it wont save anyway).

    Otherwise, give the variable to the ship sprite (unless you change sprite objects when ships are upgraded)

  • A but if I want to save it, for example mobile, how should I save this data?

    Thanks for your help.

  • o.o you can't save on mobile , these data saved with webstorage (like cookies on browsers) so it will be saved there , he want to tell you if the game is having waves every wave getting more harder than the older one you should use global variable but if not waves use sprite.variables

    for example you have sprite called ship and has (8 frames = 8 kinds of ships) and you made sprite variables so now you have variables like this (speed attack,speed move,hurt,life,...)

    so in event sheet you will do this:

    event1

    condition:sprite:compare frame = 0

    action: put speedmove = 10 , put lifes = 2, put hurt = 1 , put.....

    event2

    condition:sprite:compare frame = 1

    action: put speedmove = 50, .....

    and so on in all frames so in this way you just put ships and they will have thier own powers they will not get stronger anymore (this way for no waves games)

  • Construct 3

    Buy Construct 3

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

    Buy Now Construct 3 users don't see these ads
  • The right, then the webstore, also serves to mobile. I use Webstore to save the jogadador nivels which has passed in each score, time on each screen?

    ex:

    LvlNext = 20

    pointsLvl20 = 1050

    WebStore accepts array?

    In the case of mobile, the webstore lasts until the player to clear the cache of the phone?

    To save the information in a DB, you would send this data via a page asp / php etc? have any tutorial of that?

    Thanks for your help.

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