Ashley's Recent Forum Activity

  • This, to clarify for others, is a tetris clone made in game maker. I'm not entirely sure why you feel the need to pose this as a challenge, and I also think you're j0h under a new username, by the way (correct me if I'm wrong but we've only had one previous user with a Belgian IP). I think it's possible, but I'm not sure, you might end up running in to a bug or unimplemented feature that is required, because, and I emphasise, Construct is not yet finished. Also, I don't feel any particular urgency over when Construct will become a viable development platform, it's done when it's done.

    I know the ghost shooter tutorial isn't up to date, but why is it poor? Perhaps you could suggest some improvements or point out the places you had difficulty, so I can improve it.

  • Why are you using 'Timer equal to 10ms' instead of 'Start of layout'? It seems to work for me if I replace the timer conditions with Start of Layout, and when you return to a layout it seems the timer doesn't start from zero again, in which case it's a timer bug and nothing to do with Directsound...

  • My first end-of-year exam is tomorrow, so I'm gonna be concentrating on my studies for a bit (and have been for a while recently anyway, heh, but not enough). I'll probably get bored of revising and maybe get the next build out some time, otherwise, my last exam is May 13th.

  • The runtime doesn't technically support layouts smaller than the runtime window, so it will resize a layout to the size of the window if it's smaller. To center it yourself, make the layout the size of the window, and put whatever border you want around it manually.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • CaptainOblivious, your solution still has exactly the same problem, because triggers execute top down order as well.

    For more than two states use a reverse ordering, or wait until ELSE is fixed

    Eg.

    On button clicked

    value = 0

    Set value to 4 (note final state 4)

    value = 1

    Set value to 0

    value = 2

    Set value to 1

    value = 3

    Set value to 2

    (separate event)

    value = 4

    set value to 3

  • Whats your PC spec? Processor/RAM/DirectX version/graphics hardware?

  • Can you make an example of this happening and send it to ?

  • ELSE doesn't seem to be working at the moment, I'll take a look in the next build - if it was working, it would solve your problem though

    The reason it has no effect is because events are read in top-to-bottom order. When you click a sprite, event 5 is run:

    Is 'color' 0? Yes it is, so set it to 1.

    Event 6 is then run:

    Is 'color' 1? Yes it is - event 5 just set it to 1 - so the actions run, and it gets set back to 0.

    So the event sets it to 1 then immediately sets it back to 0. If ELSE worked, you'd just make the second condition ELSE.

    In this case, the simplest way to toggle between 0 and 1 is to use:

    On left clicked Sprite

    Set 'color' to 1 - 'color'

    1 - 0 is 1 and 1 - 1 is 0 so it toggles it between 0 and 1 without any subevents.

  • Yeah, this should be fixed in the next build.

  • Subevents are really simple, they just run if the event above them was true. Nothing special or complicated about it really. Part of their usefulness is in eliminating repeated conditions. I mean, in your case, you'd just add a DetectorDown not overlapping ground event, and make all the other events a subevent to that. That's logically the same as adding the condition to each and every event, but saving you copying and pasting the condition loads of times...

  • Can you give an example of when this would be useful? I mean, couldn't you just add a new event with the extra condition in it, and make all the other events a subevent to it?

  • You can't, and you're right, I'll add this to the todo list!

Ashley's avatar

Ashley

Early Adopter

Member since 21 May, 2007

Twitter
Ashley has 1,789,342 followers

Connect with Ashley

Trophy Case

  • Jupiter Mission Supports Gordon's mission to Jupiter
  • Forum Contributor Made 100 posts in the forums
  • Forum Patron Made 500 posts in the forums
  • Forum Hero Made 1,000 posts in the forums
  • Forum Wizard Made 5,000 posts in the forums
  • Forum Unicorn Made 10,000 posts in the forums
  • Forum Mega Brain Made 20,000 posts in the forums
  • x126
    Coach One of your tutorials has over 1,000 readers
  • x74
    Educator One of your tutorials has over 10,000 readers
  • x5
    Teacher One of your tutorials has over 100,000 readers
  • Sensei One of your tutorials has over 1,000,000 readers
  • Regular Visitor Visited Construct.net 7 days in a row
  • Steady Visitor Visited Construct.net 30 days in a row
  • RTFM Read the fabulous manual
  • x43
    Great Comment One of your comments gets 3 upvotes
  • Email Verified

Progress

32/44
How to earn trophies

Blogs