hgr's Recent Forum Activity

  • Hi.

    How do you use tiled graphics for sprites, so you can stretch a sprite, and save memory?

    I wan't to reuse a tile but have sprite with various length, behaviours and instance variables.

  • Hi.

    I would love to see an easy option of moving events, groups around in your event sheet, with a keyboard kombination in stead of having to drag and drop with the mouse.

    One cool thing would be to hold shift + alt down and then be able to move the events in and out, up and down using the arrow keys.

    That would make reorganizing your eventsheets so much easier.

  • I'm running Construct 2 on my Macbook Air using Parallels Desktop and it works great!

    Hi basti

    I use parallels too to run Construct 2 on a macbook. It runs nice, but the preview in chrome on my virtual machine runs very slow, so the games are not easy to test.

    Is there something you can change to get the browser to execute the games faster in game preview?

  • What i am confused about, is that you can put instance variable on a dictionary, which is a container for objects.

    But ok, I understand that this is just an option.

  • Hi.

    I have created a dictionary but then I discovered instance variables can be used on dictionaries as well?

    Instance variables are cool on created sprite objects, but why use a key in a dictionary, instead of just creating an instance variable on the dictionary?

    If you use a key on your index, you have to remember the key string, but if you use instance variables, you have "code completion" when you create your events.

    So which is best? instance variables or keys on dictionaries?

  • But I can suggest you a one answer to change the opacity of mouse cursor!.(even you can use a animation for cursor with this solution)

    Try this :

    On the start of layout -> set cursor style to "none"

    in System every tick -> set position of sprite ( that you need to use as cursor sprite ) to Mouse.X and Mouse.Y

    When you need to change the opacity, just call set opacity on that sprite

    Hi tharindutpd

    What you are doing is basically moving the sprite to the cursor position. I understand that, but when I read the manual, it is not recommended to do that (performance wise). Is the manual wrong?

  • ......

    Hi Korbaach.

    I have downloaded your project but is is the latest beta update. I will have a look as soon as a new stable layout is released, since I always stick with stable releases in all my software.

    I am new to construct 2, though so maybe that is a mistake

  • Well I guess the answer is: YOU CAN'T

    I have made more tests, and it looks as the only thing you can do, is to change the graphics, by changing the cursor to a different sprite, or switch to the build in standards.

    What I still do no know is if you are able to animate the sprite, or if you are stuck with a static image.

  • Hi.

    I thought I had it figured it out by adding a sprite to the mouse cursor. But I need to change the opacity of the graphics, but even though I change the opacity of the sprite used as the mouse cursor, nothing happens.

    Is the mouse cursor special, so you can't apply changes to the sprite used for the mouse cursor?

    I found this in the manual, so it sounds kind of special.

    "Set cursor from sprite

    Set the cursor image from a Sprite object. This is preferable to setting a sprite to the mouse co-ordinates, because the input lag is significantly lower. Various limitations apply: the sprite image is used as it appears in the image editor, not taking in to account size or rotation in the layout; the image cannot be too large (64x64 is usually the limit); and support varies depending on browser and OS."

  • Ok thanks I figured it out.

    Boy I wish I could just write some simple code.

  • Try Construct 3

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

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

    I am completely new to construct 2, and I am a "classic" developer that usually writes code, so I have a hard time trying to understand construct 2.

    I need to set the opacity of the mouse cursor, dependent on some condition in the game.

    So I decided to create a function that would change the mousecursor sprite, but adjust the opacity of the sprite before doing so.

    This function needs to take a parameter telling it if it should increase or decrease the opacity.

    But how do you create a function that takes a parameter, and how do you access the parameters within the function?

    The manual mentions that a function can take a parameter, but does not give an example of how you actually create such a function.

    The old dude is a little confused

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