Chris PlaysOldGames's Recent Forum Activity

  • The key with Construct2 instance selection is "picking" (read about it in manual, its essential). Basically you need to make sure you are picking the instance you want to be doing something, otherwise it picks all instances of the type specified. You pick instances using conditions in your events. In Bloodshot's example you are picking the "visible" sprite to act on. You can pick using basically anything that singles out a specific object... closest, furthest, visible, X-visible, on-screen, X-on-screen, UID, instance variables, etc. to name just a few.

  • Use round(random#) instead

  • You will need to use the enable turret / disable turret actions.

  • You may have to use the turrent built in actions to change its projectile type based on your variable value would be all I would think.

  • Are you telling it to increase?

    You will need to use set Width action each time it is supposed to update.

  • You use variables with event actions.

    On your shooter sprite put an instance variable.. say enemyShot=0

    Now prior to or in your shoot event initialize variable using action set variable enemyShot=random(0,6), or enemyShot=(choose1,2,3,4,5,6)

    Then use System compare instance variable and = 1 then action whatever, = 2, etc.. or in your example enemyShot<=5 regular shot >=6 special shot. (0 = 1.. so 1-7 is actually 0-6 in Construct2)

  • If I understand you correctly your problem is understanding the difference between saving as a .proj or as a .capx. Project or as a single executable file.

    Saving as a project keep your folder tree open and reduced load time with huge builds.

    Saving as a single .capx makes your project compressed into an executable file that neatly contains all your assets for you. The only problem with single file is HUGE projects tend to take longer to load than project (.proj) ones.

    I would recommend using the single .capx method. I save to the same .capx (keeping a backup or two periodically saved to dropbox via internal option) whenever I make a major change I save as a new .capx version number... mygame.capx - mygame-1.capx - etc. Makes keeping them organized in a versions folder much easier and I can go back to an older version if I learn my new change just isn't fun or working as I wanted.

    Construct2 will open multiple pojects/capx into the same editor session.. this is handy when you want to copy out code blocks from other projects/capx. They are added to the editor tree in the order you opened them so you simply need to find the start of each and close them from the tree view (right click option I think).

  • You can put as many instance variables as you want on a sprite object... of more than one type... are you assigning the instance variables in the left properties area when the sprite object is selected or creating global variables in the event sheet?

  • You can also use On-created event to do actions on the object being created.

    On created sprite1 set var x.snazzy = 5

  • Are you asking if animation frames can be stored in a variable as animation frames or if animation frames can be set based on variable value?

    Not sure why you would need option 1... but two, yes via action set frame... as long as you have event in place to know what frame goes with what value you can.. ie. AnimFrame = 0 action set frame 1.. etc

  • Do you have an idle status set up for your player.. ie. no key being pressed play idle animation?

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • That works too.

Chris PlaysOldGames's avatar

Chris PlaysOldGames

Member since 22 Aug, 2014

Twitter
Chris PlaysOldGames has 1 followers

Trophy Case

  • 10-Year Club
  • x2
    Coach One of your tutorials has over 1,000 readers
  • Email Verified

Progress

12/44
How to earn trophies