0 Favourites

A couple tips.

This forum is currently in read-only mode.
  • Well probably common knowledge, but tips for newbs, like me.

    On loading a sprite, most of the behaviors assume the image is facing east.

    Yeah I know I shoulda figured that one out when it started moving sideways.

    Another nice little time saver: You can set up a little HP/ counter bar, by using a gradient object, and using an objects private variable to make it grow. Just change the gradients width, or height to the variable.

  • lol yeah east and then rotates in a clockwise direction is how our angle system works. Its so that cos and sin work in this manner:

    X += cos(angle)

    Y += sin(angle)

    Really easy to remember because cos and sin are in alphabetical order, and both positive

    Also another tip is to use the tiled background object and set the width. That works well with a health bar that gets smaller (doesn't scale, just becomes less and less) or hearts where you have a tiled image of a 16x16 heart and each time u get hit you subtract 16

  • lol yeah east and then rotates in a clockwise direction is how our angle system works. Its so that cos and sin work in this manner:

    X += cos(angle)

    Y += sin(angle)

    Really easy to remember because cos and sin are in alphabetical order, and both positive

    Also another tip is to use the tiled background object and set the width. That works well with a health bar that gets smaller (doesn't scale, just becomes less and less) or hearts where you have a tiled image of a 16x16 heart and each time u get hit you subtract 16

    I always wondered why the angles were different from every other game creation platform. And now that I know what sin/cos are, it all makes sense.

  • [quote:3tsf7bty]Also another tip is to use the tiled background object and set the width. That works well with a health bar that gets smaller (doesn't scale, just becomes less and less) or hearts where you have a tiled image of a 16x16 heart and each time u get hit you subtract 16

    Oh yeah? Hey that would work for a lot of other things as well.

    Thanks for the tip.

  • Construct 3

    Buy Construct 3

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

    Buy Now Construct 3 users don't see these ads
  • Also another tip is to use the tiled background object and set the width. That works well with a health bar that gets smaller (doesn't scale, just becomes less and less) or hearts where you have a tiled image of a 16x16 heart and each time u get hit you subtract 16

    That's a clever trick

Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)
Similar Topics Posts Views Last Post
Unread hot topic
202 26,925
The Mnk's avatar
The Mnk
Unread hot topic
0 Favourites
Q3D Tips&Tricks
42 8,739
cjbruce's avatar
cjbruce
Unread hot topic
0 Favourites
Pro tip: Open C3 in app mode.
32 2,662
Psynaptik's avatar
Psynaptik