LittleStain's Forum Posts

  • I'm not sure, but I think instead of int() you should use float()

  • An Integer has no decimals, my bad..

  • You should create some kind of formula in which you compare the speed with the distance left to travel.

    Time = distance/speed

    if I'm correct.

  • What do you mean by decimal?

    If the text input is 134.5 and you use set array.at(0,0) : int(textbox.text) that should be no problem.

  • 1. Have a look at the timer behaviour.

    2. The position of your mouse is mouse.x,mouse.y pop up your menu's relative to that.

    3. search the forums for many zoom examples, some of them might suit you.

    4. Read up about movement in the manual and or tutorials. You could for instance try adding an event for changing directions if you want total control over the effect.

    5. An instance value can hold many different values under the same name, so population would be the name and the value itself could be 100 or 1000 or 10000 or even 264.75 ..

    You should probably follow some more tutorials and read the manual more intensively. Using the search feature this forum has could also help. Also there is this topic called FAQ, which means frequently asked questions, many basic (and not so basic) features are in the topics linked in that topic.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • By the way, all of your actions checking the variable are run every tick.

    This is unnecessary, so you should probably add a trigger once while true condition or put the checks as subevents of the event where you trigger the change.

  • Just add the layername or layernumber after the object.x

    So object.x(0) will get the object's coordinates on layer 0

    and object.x(1) will get the object's coordinates on layer 1

    If one of the layers is paralaxed or zoomed these results will therefor be different.

    Edit: I know this works for mouse and touch coordinates, so I assume it works for objects as well..

  • The array is much like an excell sheet.

    Just imagine A1 to be Array.at(0,0) B1 to be Array.At(1,0) etcetera.

    That means A2 is the same as Array.At(0,1) B2 Array.At(1,1) etcetera.

    Through events you can set these values and create new values based on the values entered, much like adding formulas in excell.

  • To set a value in an array you have to use:

    Array set value at.

    Line 4 just adds one to arraymovement and sets the text to "" and sets the textbox variable to the uid of the textbox. I'm not sure what that is supposed to do?

    You'd probably want to set the array value at (I don't know which coordinate) to int(textbox.text), after that you can reset your textbox and set the textobject you'd like to show the arrayvalue to array.At(which coordinate you've chosen)

  • One of the many, many still life's I had to make in artschool, I was never a really good at figurative art, but I tried..

    <img src="https://dl.dropboxusercontent.com/u/48563442/kabk.jpg" border="0" />

  • I'm not quite sure what you are doing with the ArrayMovement variable.

    Also, when ok button clicked you add 1 to arraymovement, but I don't see you setting any values in your array.

  • Hi again Lennaert :)

    I used to draw a lot. I painted and did a year of art-school.

    Since my right hand got half paralized last year I draw a lot less, but with the help of my Wacom Intuos 4 I can still make some fast rough sketches which I can then use in Blender or Inkscape to create line art or 3D models. I also use drawing for my Desktop publishing, just to make a quick overview of where to place the different elements.

    And just because a topic about drawing needs pictures here are two I made around 1995:

    <img src="https://dl.dropboxusercontent.com/u/48563442/Untitled-46-adjusted.jpg" border="0" />

    <img src="https://dl.dropboxusercontent.com/u/48563442/Untitled-8-3.jpg" border="0" />

  • Looks like it should be pretty straightforward.

    You could almost exactly copy your excell file, just have events to calculate the things that are calculated.

    Example for adding:

    Every tick Set Array.At(6,6): Array.At(3,6)+Array.At(4,6)+Array.At(5,6)

    You could ofcourse add events to only change things when valuea are changed.

  • Like lennaert said:

    If you want variables thats browser session independent, look for Webstorage.

  • You could have just asked me.. :P