Dseipp's Forum Posts

  • Thats excellent, works great, thanks you very much for your help with this, spent ages battling with it

  • Hi, thanks for that, I have done the additions and its still not doing anything, I've done a quick .capx with just the glove elements and the code we are working on

    https://www.dropbox.com/s/81711k8dx6tsyld/glove-test.capx?dl=0

    Hope that helps, thanks again

  • Hi, thanks for the reply. I have tried doing that (I guess I've done it totally wrong) attached a screenshot of the event sheet

    Also I couldn't get the last 'set animationframe 0' bit to work, I can send you the capx file if that faster / easier

  • Hi, I have a button that controls a different sprite (animation) and it steps forward one frame, all working fine but I want it to loop back to frame one when it gets past the last frame, code I've got looks like this

    touch | On tap gesture on eyebutton | eyesani | Set animation frame +1

    The actual animation for 'eyesani' is set to loop but it wont do it for some reason, any ideas?

    thanks

  • You do not have permission to view this post

  • You do not have permission to view this post

  • You do not have permission to view this post

  • You do not have permission to view this post

  • You do not have permission to view this post

  • Thank you :) That works perfectly. Thanks for your help - cheers Dave

  • Hi, I'm using as a base a quiz kindly supplied by dop2000 https://www.construct.net/en/forum/construct-2/how-do-i-18/please-help-project-138137

    I'm trying to add a different image on stage for each question and have created a sprite in the game with animation frames (1 to 6) and have added that image at 'On start layout' and set it to 'Set animation frame to 0' (it shows fine on running the layout)

    On 'Answer is correct' I've added the image again with Set animation to frame 5 (and that works fine, it jumps to 5)

    What I'm trying to do is get the sprite animation to step one image forward on each correct answer, eg

    question1 = sprite1 animation-frame1

    question2 = sprite1 animation-frame2

    question3 = sprite1 animation-frame3

    I've tried using the 'On start layout' and set it to Set animation frame to 0 and then on the correct answer adding the sprite with self.animationFrame+1 but for some reason it wont change.

    Any ideas

  • Your a star!! That works fine, thank you. I have spent ages trying to fathom it out. I've looked at other capx files (they do it a different way) and googled etc. I was aware what the 5 was from changing the number and testing it.

    Thank you again, thats really helped me out :) - cheers Dave

  • Hi Guys, I have a colouring game that at the moment has a thin strip to select the colours and I'm wanting to increase the colours used in the game and have a deeper block shape rather than the strip.

    at the moment I'm using code (canvas)

    Touch > Ontouched colourstrip > system > colourstrip.rgbaAt(Touch.X - colourstrip.X,5)

    but that will only let me sample from the very top of the new block shape, does anyone know a way of being able to sample from the whole block shape area?

    Tagged:

  • Hi Allan, thanks for the speedy reply I'll have a look at that :) thanks again and thanks for the links - cheers Dave

  • Hi does anyone have any examples of a colour picker for construct2? I've spent ages searching and found a few all dropbox links are 404 and the youtube video that looks like exactly what I want is in spanish - cheers Dave