RamPackWobble's Forum Posts

  • if you set their hot spots to the corner of each sprite that is relative to where you want the sprite to be (ie the top left sprite would have the hot spot in the top left)

    then is it not a case of saying

    sprite(top left) position 0,0

    sprite (top right) position (screen width,0)

    sprite (bottom left) position screen height,0

    sprite (bottom right) position (screen width,screen height)

  • How about abs (sprite1.x-sprite2.x) is less than 300 , etc ?

  • Here is a copy of the first version code

    <img src="https://dl.dropbox.com/u/143636437/temp/screen%20grab.png" border="0" />

    I like the idea of using a group turned on or off...

  • appears to work here ? Have you re-uploaded it and I am looking at the new one ?

    I like the graphic style.

    can't download capx file.

  • OK Wait works also so maybe a better choice ?

    mana test using wait

    edit

    this sets the 4 second timer the first time you use mana and it keeps increasing your mana every 4 seconds but it does not restart the 4 seconds every time you use mana if below 100%

  • Have a look at

    mana timer test

    going to play with the wait command as this might work (never tried it yet...)

  • As I think I understand it:

    Every 4 seconds might be half way through its "loop" when you are checking so instead of waiting 4 seconds you will only wait the remainder of the 4 seconds.

    So how about setting up a global variable (gvManaTimer ?) and increasing this every 1/10th of a second.

    then you reset GVManaTimer at the correct time and wait for it to be +40 before you increase you actual mana ?

    so you will end up with something like

    make GlobalVariable called gvManaTimer

    every 0.1 seconds : increase gvManaTimer

    ------------------

    I've used some mana

    reset gvManaTimer to 0

    is gvManaTimer >40 (ie it's 4 seconds plus since I last reset gvManaTimer)

    YES ?    :    add one to mana (if mana is less than it should be)

            :    also reset gvManaTimer to 0 to restart its 4 seconds again

    this will still have the same problem of maybe starting its loop during the every x seconds but as the time is small then probably not noticeable.

    Maybe 0.1 is too short a time - every 0.25 or 0.5 or even 1 second updates ?

  • not sure what you are doing but how about having an instant variable on the spite (called ivSpeed ?) and doing something like

    X-(ivSpeed*dt)   (I know the brackets are not doing anything but it is easier to read in my mind)

    then you can alter ivSpeed value to alter the sprites speed ?

  • Not sure if this will help ?

    UID Test

  • Pressing "I" also inverts the condition

    see

    scirra.com/manual/64/keyboard-shortcuts

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Set mouse curser to none hides the mouse.

    Set mouse curser from sprite to change to your own

    For more information see

    scirra.com/manual/114/mouse

  • Thank you - are these done in grobotto ?

  • are you talking about "in game" or in the editor ?

  • How about something like

    Make a variable called total =0

    For loop 1 to 10

    If the value at array (position +loop count ) is greater than 0 then add 1 to total

    At the end of loop

    If total is greater than ten

    Do you. Other loop

  • Thankyou.

    I was thinking of taking the controls from the second demo and using it in the first....

    Any ideas or suggestions on what these need ?