michael's Recent Forum Activity

  • Hi, would be good idea to search 'remember not to waste your memory', which is a blog written by Ashley. It will help you a great deal in the long run.

  • Ashley is any safe possibility to force IE 9-11 to work with set cursor ?

    Sventevith, if you mean set cursor to sprite, you need to use cursor files in IE. This plugin created by thehen is just the ticket!

  • tulamide, thanks for the PlayCanvas link. Another toy to play with!

  • C2 is easily worth much more than scirra ask.

    My advice is, just buy it, if funds are a problem, start saving - it really is a steal already.

    Happy consructing...

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Hmm, was looking forward to trying this, but no go for me.

    Installed on galaxy tab 2, displays the luidi logo then crashes....

  • Hi farhanx

    Not exactly sure, but I think from memory that the ghost shooter demo has that effect when you loose.

  • Hi, if you post a capx, others will be able to help you much easier.

    If you don't want to share your game, then make a capx that illustrates your problem. If we can't see what you are doing in your code then it is a bit hard to help.

  • Hi SteveKane,

    No problem, we are all learning.

    To help out a bit I have modified the example you posted. I should add that it is substantially altered as there are a number of things you are doing that are really not ideal .

    For simplicity I have changed it so it gives the results you are looking for without using Functions. I hope it helps you in some way.

    [attachment=0:27tnju6r][/attachment:27tnju6r]

    However as codah says functions are really quite easy and super usefull. I would encourage you to study the examples posted, and also the manual entry on function - it will help you a great deal for all your projects.

    Please note that in your example you were using separate spritefonts for each text(10) you wanted to display, but they were all exactly the same source image. In this case you can use instance of the same spritefont and use instance variables so that you can reference them in code if needed.

    I have modified the example to use just one spritefont. Take your time to see how that is working.

    Also I changed the sound and music sprites so they each contain the On\Off state images, this makes it easier to display the current user preference. I also used smaller images 32x32 instead of 300x300. The larger images are not such a problem with a simple layout, but if they are ever displayed on the game layout you are using up a lot of your graphics budget (4 images 300x300 - which in terms of memory usage = 4 512x512 images) just for a couple of buttons. See Ashleys blog remember not to waste your memory for more info on that.

    The capx is well commented, hope it helps.

  • 8.1 uses IE 11. Has WebGL support....

  • You could use a global variable.

    Something like this:

    gvAnim=0

    On space pressed:

    gvAnim=0: play first animation

    • set gvAnim to 1

    >else :play second animation

    • set gvAnim to 0

    Happy constructing....

  • And How should I do this the right way that it updates every time when global variable changes?

    Hi, you have an event 'on collision with sprite6' you could update the text in tne same event.

    ON collision with sprite6:

    Destroy sprite6

    Add 1 to score

    text = "score " & str(score)

  • Hmm, I made an example for you, but I see you have it sorted - great work!

    However for the benefit of others I may as well post the capx any way.

    It has a simple way and also one using lerp for nice smooth effect. Sorry didn't comment much in the capx. but it's late here in Australia.

    Hope this is useful to someone..

    [attachment=0:2ylzcobn][/attachment:2ylzcobn]

michael's avatar

michael

Member since 24 Dec, 2012

None one is following michael yet!

Trophy Case

  • 11-Year Club
  • Email Verified

Progress

12/44
How to earn trophies