helena's Recent Forum Activity

  • I am loading the levels through AJAX. Works well.

    I wanted to streamline the events from manually have like 100 event lines like below

    AJAX - On Level1 Completed --> Levelarray bla bla

    AJAX - On Level2 Completed --> Levelarray bla bla

    ..repeat until all levels has been done..

    At first I thought why not make a loop and insert loopindex for the current level.. But then nope, the AJAX is triggered and can't be in loop. Ok of course.

    How would you streamline it?

    Thanks.

  • It did not work initially, but when I did an experiment I understood I had to create variables first! Because it did not understand (variable1 & "blabla") | (variable2 & "this"), fed it with local string varibles. THEN it worked!

    blackhornet Sorry for being daft.

  • Oh yes. Forgot the animation name.

  • Too soon. It seems I ran the wrong capx when testing.

    Did not work.

    I wrote like this:

    SettingGraphic&"ScissorsLeft"|SettingGraphic&"ScissorsUp"|SettingGraphic&"ScissorsRight"|SettingGraphic&"ScissorsDown"

    and it did not pick any of them.

  • blackhornet to the rescue again!

    (and I have vague memory that we did same thing earlier.. )

  • Thank you for replies!

  • Let's say I want to Pick sprites that have four different animations names, pick all the instances that happens have one of these following names:

    Play

    Hello

    Flower

    Rabbit

    how would I do it best way?

    I tried first

    Pick Sprite where Sprite.AnimationName = "Play"

    or

    Pick Sprite where Sprite.AnimationName = "Hello"

    or

    Pick Sprite where Sprite.AnimationName = "Flower"

    or

    Pick Sprite where Sprite.AnimationName = "Rabbit"

    ---Subevent

    For each Sprite order by 0 Ascending

    more sub events.....

    Then I removed the "or"..

    but neither seems to work so maybe this is bad logic?

  • Hello.

    My game engine is super complicated and I do not want to do the hassle to change the origin from top left to center, as the engine works better with the top left.

    So I wonder if I can rotate the animation in center even if the origin is top-left?

    The only I can think of is to create three more animations, identical but new orientation and change animation when change direction. But waste of space and cpu.

    Any other ideas?

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Good to know. Now I have solved the bug anyway so onward to the other bugs!

  • Whoops. Looks like the event that should be sub-event wasn't sub-evented so to say.

  • Interesting. Ok!

    I see now there are a consistent bug with one of the player actions that I thought I did not have earlier. I wonder if it could have been caused by new versions of C2 (I haven't touched the gameplay code for more than 1 year, or even 2 years), I have tested many versions of the game. Or was I that negligent. haha.

    I wish I had someone with fresh eyes and better logic to look at my game but at same not uploading it to this forum.

  • Whiteclaws interesting. So what you say the events do not wait on each other after all.

    EDIT:

    I tried to add wait 0 after every suitable event but it just effed up the whole thing. Well.

helena's avatar

helena

Member since 1 Jan, 2014

None one is following helena yet!

Trophy Case

  • 10-Year Club
  • Forum Contributor Made 100 posts in the forums
  • Forum Patron Made 500 posts in the forums
  • Regular Visitor Visited Construct.net 7 days in a row
  • RTFM Read the fabulous manual
  • Great Comment One of your comments gets 3 upvotes
  • Email Verified

Progress

16/44
How to earn trophies