lionz's Forum Posts

  • Very nice. ALIENSWEEP was fun

  • On the linked project, the global layer is UI, not ItemStore. Make the ItemStore layer Global.

  • If you're using my method then the object will face a certain angle and the animation will just switch with that angle change. Sounds like a specific logic problem so you'd have to share events or capx for someone to take a look.

  • Looks like the angle of the boss is set to 270 (or -90) for some reason. You'll have to check your logic for that.

  • This is what you are after in its basic form right? https://dl.dropboxusercontent.com/u/495 ... ollow.capx

  • I just don't like set angle toward player in side scrolling platformers because it targets the origin image point and starts rotating the object toward that image point. I prefer to set a defined angle for the boss then move it forwards at that angle. I am using the boss move forward a number of pixels action, it will move at the current set angle so usually 180 or 0 (left/right). Instead of this move forward however, you can use platform behaviour to simulate left,right presses which also works, either of those two options will be fine. I can send you a capx example if you want but it is just 3 events and you're already using 2 of them!

  • I was assuming top down game, which is where set angle toward, pathfinding, 8-direction are useful. If it's a side-scrolling left-to-right mario platformer I don't think you need to make use of set angle toward player, you could give the boss platform behaviour and have it simulate movements left to right towards the player object and if the boss X > set animation facing right, if x < set animation facing left that kind of thing. Instead of platform behaviour you could also just move toward the player at the given angle. You could do this in 3 events, move boss forward a number of pixels (at given angle), if boss.x > player.x set angle 180, if boss.x < player.x set angle 0 in its basic form. I mention platform behaviour on the boss because if you are wanting to simulate it jumping and chasing you then this behaviour will be useful.

  • What kind of functionality do you want for the boss? I can assume you are trying to make the boss face and follow the player but not sure if that's what you are trying to do. I've been able to set up this kind of functionality when the boss is a bullet or using 8-direction and have no issue with animation direction.

    Again, it depends on what exactly you want to happen. You could have the boss switch animations based on if it does or does not have line of sight of the player if that's what you're trying to do, if it's specific areas on screen you could detect if player is overlapping a specific checkpoint, is a certain distance away from the boss etc, if you are switching the boss' animation based on stages of the boss then you could set up a variable for what stage of the fight it's at and switch the animations that way if for instance it's a boss that is being damaged and you want to change how badly damaged it looks.

  • Good to see it's not just me procrastinating on league of legends instead of making my game what exactly do you need help with?

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • The debugger just shows the total image memory usage, although you could set up a mouse click event that navigates quickly through each layout and you can see the images loaded in memory per layout that way.

  • The calculation in events 8 and 9 where the comparison value must = 0 seems to imply that run speed has to be a multiple of 32 or 32/runspeed isn't ever going to hit 0 if for example runspeed is 7 so 32/7 it's not going to be possible to =0 since Ticker is always a whole number.

  • You use the Browser object to update, it's all mentioned here in the 'Updating your game' section :

    https://www.scirra.com/tutorials/70/off ... onstruct-2

  • I think what you're looking for there is a check if animation frame does not equal 0. I've set it up here:

    https://dl.dropboxusercontent.com/u/49548363/test5.capx

  • I've added a line to one of the events that fixes it :

    https://dl.dropboxusercontent.com/u/49548363/test4.capx

  • I don't think your link is working.