wolfomat's Forum Posts

  • Dear Fellows,

    currently i am working on a simple mechanism to move a sprite with touch.

    i just want to move the object it on the y-axe, its okay in that way.

    now i have a problem:

    When i moved the object and touch it at the top (instead of the center), the object jumps "up", the touch seems to be snap the item right into the center of the pivot.

    What i want to perform is a "smooth" touch => i touch the object at any point, and then i can move it "normally".

    instead of jumping, the touch movement should be done right where i touched the object, and not jumping into the center of the object.

    i attached a small drawing in order to explain what goes wrong.

    with the simple "Touch => Is Touching Object => Set position.Y to Touch.Y" or "to Touch.AbsoluteY" it jumps like that. any idea or a link to a tutorial?

    what i want to do, is that i touch it at anypoint and move it from the current touch position +/- Y.

    aaand sorry it's late night and i am from germany, my english isn't just the best i've written. but i am tired

  • Hey, thanks for you quick help on that Just checked it out right now. Cool.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • I'm just curious about how to style a textbox in Construct 2:

    what i've read:

    Styling Textbox objects

    Textbox controls can be customised in a huge number of ways via CSS (Cascading Style Sheets). Rather than adding actions to set all of the possible properties, the Textbox object exposes a Set CSS style action. Knowing CSS will of course be an advantage here, but it is simple to use for simple properties. A few examples are listed below.

    Make the text red: Set "color" to "red"

    Make the background yellow: Set "background-color" to "yellow"

    Make the border a thick light grey: Set "border" to "3px solid #AAAAAA"

    Make the font bigger: Set "font-size" to "2em"

    Make a dashed red border: Set "border" to "2px dashed red"

    i know css, but i don't know where to set these options - i just need the hint "where" to do this :D