galacticfan's Recent Forum Activity

  • Or you could play around with the Z-Depth if they were on the same layer.

    I.e. When player in front of enemy -> Send player sprite to front of layer

    When player behind enemy -> Send enemy sprite to front of layer

  • Roal465 Ahh, cheers, had no idea.

    -1 for laptop keyboards.

  • Colludium So you can fire a bullet whilst holding down both the left and up arrow keys?

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • I wasn't sure whether or not to post this to the bug section or the how do I section but for now I will assume that I must have it set up wrong.

    I have a player sprite with 8-direction control and on pressing the spacebar, a bullet is spawned and moves at the angle of the player (please see capx file). However, when moving North-West (so whilst the up and left arrow keys are pressed) the bullet will not spawn. The bullet spawns for all other 45 degree directions and I experience this problem over all of the games I have made so far.

    Any ideas?

    Capx file: https://dl.dropboxusercontent.com/u/204115655/Example.capx

  • I know that you can change the background of the HTML page post construct 2 export but I was wondering if this could be done to the background colour of the desktop export i.e. change the background colour of the NW.js exporter as it is currently black?

  • Yes, that's it!

  • I can't believe that I can't find any feature of construct 2 to do this, are we being really stupid? There must be a function similar to families that has the ability to group objects, but allows you to move them as a whole and rotate about a common pivot, hmm.

  • Can you not just drag a selection box around the building and then copy and paste?

    There might be a way of grouping the objects together and being able to move that group around but I'm not quite sure how you would go about it. Containers were the only thing that came to mind but I don't think that they group objects int he way that you need them grouped.

  • Does your app need access to the internet?

  • 1) You could perhaps have your 'boost' animation pinned to your enemy aircraft, instead of spawning it, and when the enemy becomes enraged you could then unhide the boost animation. Then you cold hide it again whilst the enemy is no longer enraged.

    2) You could make it easy for yourself and set up the whole wave system to trigger on a time basis. For example, 5 seconds in spawn these guys, then 10 seconds in spawn these guys, etc...

    Check out the simple timer on here: https://www.scirra.com/tutorials/450/timers and then you could check the time and then spawn when appropriate.

  • Yes, another solution is to use the pin behaviour, it will do exactly the same thing

    You'd have to upload a .capx file for me to see to understand better what is happening. You can do that by going to file and then 'Save as Single File'. From there you should be able to upload it somewhere (a public dropbox link would work) and then post the link.

  • I have linked an image of my example below. My example 'glues' a player shadow underneath the player sprite at an image point called "Shadow".

    Let's go through it step by step. First you want to start by creating an event that runs every tick (so basically the refresh rate of the screen the game is being played on). Then, under a new action, select the sprite that you want to be glued to something, then go to 'Set Position'. Once the dialog appears for the X and Y values, enter in:

    For the X coordinate: SpriteToBeStuckTo.ImagePointX("ImagePointName")

    For the Y coordinate: SpriteToBeStuckTo.ImagePointY("ImagePointName")

    Hope this helps!

galacticfan's avatar

galacticfan

Member since 19 Aug, 2013

None one is following galacticfan yet!

Trophy Case

  • 11-Year Club
  • Email Verified

Progress

12/44
How to earn trophies