Aphrodite's Forum Posts

  • Webstorage is completelly offline despite his name.

    It is like a global value, so applying once and it stays for as long as it is not erased

  • Compare two values:

    (Levelachidvement = 7)|(Levelachidvement = 8)

    Equal to

    1

    X= y return 0 if false or 1 if true

    A|B|C return 0 if A and B and C are all to 0, returns 1 otherwise

  • Lets say I want to do this:

    > for(var i = 0; i < 10; i++)
    {
      print(i);
    }
    [/code:2nj1nczk]
    
    How do I do it on Construct2?  I need the I in the ACTION side to set object positions!
    

    The way to do it is I think to do a for loop condition, and using the loopindex expression in the action.

    "loopindex

    Get the index (number of repeats so far) in any currently running loop.

    loopindex(name)

    Get the index (number of repeats so far) of the loop with the given name. Useful for getting indices in nested loops."

  • Do not download the snapshot directly, download it with the system event "On canvas snapshot"

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • i want make a clone of The Binding of Isaac.

    1) How off "ice effect" of player? I set acceleration and deceleration to 0, but player just dont move. At default he is moving like rides on ice.

    2) Press two buttons at once. I need press to keys: arrows (movement) and space (shoot). So if I press up (movement up) and space, that mean I want shoot up direction.

    3) Bullet move only at right direction. How can I made that from up origin point it move to up. It shoot right from all origin points.

    1)you would prefer to have a very high deceleration and acceleration for that, so it goes from 0 to top speed and from top speed to 0 in an instant.

    2) check the keys that are down when you press space I would guess.

    3)Change the bullet angle of motion right after you create it (with events).

  • It is a system condition

  • Ok....the solution to this is uninstall both and reinstall the contruct2 again...and work fine.

    I am not confidence with XDK atm...by the way, is that normal the size of APK eat up so much?

    contruct 2 --> export android (600k) --> XDK (7mb) ....need 7mb that much? that's 1000x

    Maybe in the future enbling the preview over wifi would help, since it is not using localhost for c2 in that case, you could also goes into c2's options and change the port maybe.

    Also I think 7mb is 7000 kb, so more like 10x compared to 600 kb, but every wrapper I think adds a constant size

  • Always to the latest stable, C2 is done in a way that breaking changes occurs rarely, so older projects still works in newer versions (if there is a breaking change it'll be documented in the changelog).

    Updating to stable is also pretty good regarding bug fixes

  • Global variable will reset indeed, the webstorage with local keys seems a better choice

  • Ok so I have this huge annoying problem. Basically canvas is in front of the layer i make i dont know how to change it, i googled and tried under project properties but didnt find anything, I would appreciate any help.

    Thanks in advance.

    I would guess that one of your layer other than the bottom one has his transparency to opaque

  • This is weird, at first I thought it could be seams, but it does not seems to be that.

    Which object is used as the grass?

    (Also did you tried in the latest stable?)

  • I'm around 2000, though construct 2 has changed a lot since i started the project. Also i think construct counts comments so it's hard to say the real amount.

    Comments aren't counted as events, however, variables and groups and inclusions are

  • If that can help someone understand the why is it like that, the truth table of the AND , OR.

    AND needs all inputs to be at 1 to return 1, otherwise 0

    OR needs all inputs to be at 0 to return 0, otherwise 1

    C2 comparisons operators like = ; < ; > ; <> and so on returns 0 if false and 1 if true

    So you need to try :

    Compare two values :

    ((T = 2)|(T = 1)|(T = 3)|(T = 4))

    =

    1

    if you want some thing to happen if T is 2; 1; 3; or 4

    It is not only an computer thing, a lot of devices are considered to have only to opposite states, and so logical equations exists for them too (however syntax is not the same, the OR is + and the AND is .)

  • I am mostly doing currently games on PC tablet and mobile without wrappers so I do not know a lot about C2 optimisations for them

  • jayderyu in an action game like this, any delay greater than 1/60th of a second is too long.

    Aphrodite yeah, I tried to write to a .png file. Are you suggesting saving the string, then opening it in a browser? It could work but I think that would be very painful when looking through hundreds of pictures.

    I meant that (sort of), but yes, a png output would be far better, I agree.