MoscowModder's Forum Posts

  • I would like to save data (currently a high score but later stuff like stage-specific scores, inventory, etc) in my game, but also release it on multiple platforms. The trouble is, web apps use LocalStorage, and Win8 apps use the Win8 object, so it seems like I need to use something like this:

    Create default score:

    If HTML5 ...

    If Win8 ...

    Load:

    If ...

    ...

    Save:

    ...

    ...

    Does it have to be that complicated, or is there a unified method to save/load no matter what the platform? And I'm not talking about saving/loading the game's state - I'm talking about scores and inventory and stuff.

    Thanks!

  • I knew that...

    So yeah, thanks.

  • I just updated because GenkiGenga's example was made in r133. UGH.

    I'm still pretty clueless on this problem. HALP.

    Edit: Wow! Found the problem. The bullets were being created to an invalid layer, so the game must have picked all bullets instead of the non-existent not-actually-created ones.

  • Oops, didn't finish uploading before I shut my computer. Should work now.

  • Yeah, mine is set up the same way as yours.

    Here's my .capx, minus the Pause and Function objects: dl.dropboxusercontent.com/u/811222/temp/CiS2NoPause.capx

  • However, the System Create Object action will apparently also pick objects, specifically the object it just created. So, if you properly placed a create object bullet action right before your set angle bullet action, then it should only apply to that created object.

    That's what I thought, too, but it doesn't work for me.

    You can see my CAPX file at https://www.dropbox.com/s/n4ugzwygz346xqk/CiS2.capx, event sheet "Common enemies", groups "Copter" and "Tank", and also sheet "Global", group "Gun". In the preview mode, enemy bullets re-aim at you and occasionally (not always) your gun turns enemy shots around too.

    Edit: I'm spawning the bullets with Enemy->"Spawn another object".

  • But how do you put the "set angle" part within the "spawn" part? I currently have it immediately below in the same event.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • It's below. How do I make it within? It can't be in the bullet's "On create" because different enemies fire bullets differently. I could make several different bullet objects, but I'd rather not if I don't have to.

  • In my game, I use the following series of actions to fire bullets (both the player and enemies):

    (Object) spawn Bullet

    Set angle toward target (either player or current direction)

    Set damage...

    The trouble is, the Set angle action doesn't seem to care which bullets it chooses. For example, one enemy that shoots bullets aimed at you will aim all bullets on screen at you every time it shoots. How do I make it only select the shot it just fired?

  • Perfect! Thanks!

  • I'd like to make different members of an object family all share a family instance variable (like HP and Damage), but all have different values for this variable. I can probably just give each different family member an _HP and _Damage variable and an event sheet that copies these values to their family instance variables for each enemy, but I'd much prefer if I didn't have to do that as I plan to have many, many different enemies and do the same for different families like weapons.

    Is there an easier way to do this or am I stuck with the method described above?