hgr's Recent Forum Activity

  • It's not a good idea to edit these directly though, unless you are very careful. For example, if you change a variable name, you have to change all it's occurrences across all event sheets. Any events you miss will be broken.

    This is why I would like to see a find/replace option in construct 2.

    Refactoring in Construct 2 is a pain.

  • Man I would like to have a simple find and replace text in the event sheets.

    The find feature does not quite do it, because when you are searching for a specific string or refactoring it is so hard searching through your lines of code to find what you are searching for.

    Sometimes it would be just nice to be able to edit the source directly in a text editor, if you have to refactor your code.

  • On mouse click c2 detect the object that is on top in the Z order. So if its not working, try to send it to the top of all objects that u have on that location.

    Example:

    Layer 1

    Obj1

    Obj2

    Layer 2

    Obj3

    Obj4

    Layer 3 (Background)

    Obj5

    Obj6

    If the object 1 and 3 is on top of each other, your click will get the object 1. If they are not, obviously you will be able to click on both.

    Not true kossglobal.

    See the example file above, it tells me that the z order is not important and a single left click is firering through all sprites below the mouse cursor.

  • ............??????

    Thanks korbaach

    Your project illustrates that it is true. The click on event is fired for the red sprite even though the blue sprite is covering it completely.

    So I was right about that Construct 2 does not take the z order of the layers into consideration.

  • Hi.

    Is it correct that the mouseclick on object is for all layers?

    I have a background layer, and a game layer which is on top of the background layer, and an event that acts if the click is on a sprite, and another event if the click is over the background.

    But when I click a sprite, it seams that the background counts as a click as well.

    So is it correct that the click is actually covering all layers and not only the first object on the top layer?

  • Ok Thanks guys

  • It looks as if you can change the speed of the bullet, but it change the speed of all bullets, or at least it looks that way.

    So is it right that if you set the speed of the bullet, it will set the speed for alle visible instances of the bullet?

    It can't be right? can it?

  • Hi

    I have created a bullet sprite, and I spawn bullets, but on creation I change the speed of the bullet so they can have different speeds.

    Howerver, it looks as if I am changing the speed for all bullets of the given class of sprite, and not the instance.

    Is this true? Is the bullet behaviour properties "global" for all instances of the sprite?

  • What if we allowed constant instance variables? Then you could have Player.ATTACKING, Player.CHASING as well as Enemy.ATTACKING, Enemy.CHASING etc. without spamming your global variables.

    Alternatively you can just use strings like "attacking", "chasing", "hiding" etc. Javascript takes this approach, and while it's susceptible to typos, it works surprisingly well and has the added convenience you don't need to do anything to define a new enum.

    Hi Ashley.

    Yes you can use strings, but enums would be really nice because you can set them with integer values, and it is nice to code with enums, because it is much easier to read and you make fewer mistakes.

    So I would love to see enums in construct.

    And codecompletion on function names, so you dont make typing mistakes with function names

  • It is not managing the animation in construct 2 that I have a problem with. It is creating the animation.

    I have not found a good tool to animate a sprite around the x-asis, because that is a 3D animation. I use spriter to animate in the x and y directions, but around x (which is really z direction) like a tilting book.

    And since I am not a graphical designer, but a developer, I would like to find a solution that is just as easy as spriter.

  • I prefer to do it with prepared animation. This is the only animation my sprite is going to have. So I prefer to have prepared animation for this.

    And I thought it would be easy to find a graphics tool that could do this simple kind of animation. I do not need a 3d rendering, and realistic output.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Hi guys.

    I need to create an animation where a sprite tilts around its x axis.

    Imagine a book standing up words on your desk, and then touching the top of the book with your finger, so it tilts backwards and lays flat on the desk.

    The x axis is the surface of the desk.

    This sort of 3d backwords tilting, is what I would like to create for a sprite. I am a developer not a designer, so I was looking for a tool that could take a png and then tilt it and export the animations as png files. Thought that would be easy, but this 3d like animation, is not something I have found a good solution for.

    Does any of you know of a tool that can do this? tilt an image around the x axis?

hgr's avatar

hgr

Member since 6 Nov, 2014

None one is following hgr yet!

Trophy Case

  • 10-Year Club
  • Email Verified

Progress

11/44
How to earn trophies