jojoe's Forum Posts

  • Hrmmm, there are Draw modes too i forgot about. Maybe you can hack something to together using the spurce in, source out ...Etc...

    Just use another sprite to occlude the subtracted part of the original fruit sprite. Can be whatever angle the occlude sprite is set at.

    in C2 just start a new project, and search for "DRAW" to find the draw mode example.

  • Sombody made a trim effect:

    You will need to spawn 2 sprites. Will only work horizontal or vertical iirc.

    The only other way I know to do it is with Unity and middle-ware that does real time boolean subtracts on the meshes.

    Maybe someone else knows a good way. I would like to learn this new trick too

  • Just guessing.... Maybe you are getting problems dealing with non-whole numbers? 0 and 1 is a hard one if you are using integers

    If you are having problems with getting the fraction, you dont need to clamp anything. Just cast the variable into a float like this:

    float(YourExpressionHere)

    That will allow the decimal value that comes after the whole number.

  • I'm way too much of a beginner to know what you mean, ha. But I'll give it a read+look around into this matrix thing and see how I get on first.

    But can I just confirm that this will produce a result of what I meant such as in the app Tap Titans?

    Not sure what game you are talking about. This is just a way to scroll large numbers of things without drawing everything in the matrix.

    My crappy English probably does not help. It is only 3 little things you need to do. Here is a load and save system:

    https://mega.nz/#!kAxBQRTJ!ZqM9eHA0R-q4 ... lPRiPPXQFA

    Look at the part where the user clicks the green up and down buttons to scroll the list.

    To try this, just run the capx, and type a few entries in and click the save button. Then you can click the up and down arrows and see the scroll.

    Can use the same trick to scroll through large amounts of text,

  • Love the graphics. Bright and colorful.

  • Great choice Scirra!

    Congratulations Zenox98!

  • Use an array.

    To scroll right copy the end of X, to X,0, then pop the back of X and redraw the matrix.

    Here is how to draw a matrix from an array.:

    https://www.scirra.com/tutorials/360/ge ... m-tile-map

    You can later load and save the array as a .json file. That way you can use local storage to save the players place if needed.

  • every tick ----- Set angle tward position head.X,Head.Y

    --------------------Move 1 px forward.

    add a random number to the Head.X and Y and the follower wont always try to be on top of you player.

    You can use the same trick with pathfinding, just find a path to head.X and Head.Y then add a random (-10,10) .

  • Magistross,

    Thank you!

  • I was thinking in releasing it for free and accept may be donations.

    This is REALLY awesome! I will give you a 5% cut of whatever I make with it.

  • Glad to help

  • Hi!

    Just find the image, or images, then simply drag and drop them on the C2 window, with nothing selected in the layout view.

    Another way:

    You can double click on the canvas and select Sprite, then from the Sprite editor, there is a way to load images and sprite strips.

  • Hold shift and peck "\" so you get of of these line things" |"

    That is OR

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • If your minimap is 10% of your entire map, then maybe it would be mouse.X*100 mouse.Y*100 (or maybe 10? My math is broken today). use set position, that is another way of saying "teleport"