shinkan's Recent Forum Activity

  • Don't worry, it's not your fault. I bet you did already dozens of that kind of a workarounds. And for the Nvidia, I've just send them a question abiut that.

  • yeah i did. Been trying to force it and was able to crash it everytime i have deleted two layout in the row. oh well it's nvidia... meant to be played, not deleting ;)

  • Sometimes while deleting layouts from the Projects lists it shows me this message window:

    "NVIDIA OpenGL driver detected a problem with the display driver and is unable to continue. The application must close.

    Please visit nvidia.com/page/support.html for help.

    Error code: 4"

    C2 r57, Win 7 64, Nvidia Geforce GTX 570

  • I though it supposed to act like a Global Variable but in closed environment, in groups for example. So you could be able to do some stuff with it only in certain part of your code.

    I asked about that cause i want to do a simple switch that exist in only one group and belongs to only one sprite. It could be easily done with instance variable or global variables, but well I just want to try local variables to see how they behave.

    Besides I like the way they are not shown in the overall list, if you compare a system variable outside of that group. That makes things less confusing if you have loads of variables.

    [quotes] But in the end, isn't that the supposed behavior?

    I mean, each time the group gets called/executed, the local variable is "reset".[/quotes]

  • hmm ok. to be sure, step by step

    • New project
    • add text object
    • add mouse object
    • create Global Variable = 0
    • create Group
    • move Global Variable into the Group - it's now Local Variable = 0
    • Every tick set text to Local Variable
    • on left click add 1 to Local Variable

    after previewing this layout text object shows 0 - thats correct, but clicking mouse buttons doesnt do anything.

    I did that with keybord object too and with Every xx seconds and still Text object displays Local Variable initial value 0.

    :/

    I've also add another sprite to see maybe text object is not displaying it properly.

    if local variable = 0 - set sprite opacity to 100

    if local variable = 1 - set sprite opacity to 50

    Nothing happens. Local Variable stays at 0, sprite stays with 100 opacity.

  • "On start of layout" works for me to, but try to change it to every tick or every 1.0 sec... or add a Mouse: On Left button Clicked - > Add 1

  • can you do a quick capx file and post it?

  • I't happening with every new project. Create a global variable move it to a group an try to add, substract or set that variable to something different.

  • It seems that once Global variable is turned into a local variable - by dragging it inside the group in my case, can be set only once.

    You can't add, substract, or set that local value later in runtime. If you set it like ie. "Local number Variable = 0" it stays 0.

    It happens on Win 7 64bit, C2 r57. Not sure about previous releasses.

  • but remember that Time Scale is best to use with timedelta as Ashley mention that on other post

    You should always include delta-time (the time since the last tick) in movements. For example, use

    Rotate 90 * dt degrees clockwise

    If you rotate 1 degree per tick like you had, at 10fps it rotates 10 degrees a second, and at 60fps it rotates 60 degrees a second (6 times faster). So to make games move at the same rate you always need to use dt. In the above example, it rotates 90 degrees per second regardless of the framerate.

    When you set the timescale to 0, dt becomes 0 as well, so movements using dt also stop.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • yes, You can use scroll to X/Y at the start of the layout in events

  • You can set one layer with blur effect and place your character in other layer above.

shinkan's avatar

shinkan

Early Adopter

Member since 21 Nov, 2008

Twitter
shinkan has 8 followers

Connect with shinkan

Trophy Case

  • 16-Year Club
  • x5
    Coach One of your tutorials has over 1,000 readers
  • Educator One of your tutorials has over 10,000 readers
  • Regular Visitor Visited Construct.net 7 days in a row
  • Steady Visitor Visited Construct.net 30 days in a row
  • Enduring Visitor Visited Construct.net 90 days in a row
  • Unrelenting Visitor Visited Construct.net 180 days in a row
  • Continuous Visitor Visited Construct.net 365 days in a row
  • RTFM Read the fabulous manual
  • Email Verified

Progress

25/44
How to earn trophies