LittleStain's Recent Forum Activity

  • It's not easy and will take a lot of tweaking, but there have been many who tried. Just search the forum for 8-direction with jump.

    I guess your best bet would be to create a floor-sprite with 8-directions behaviour to which the player sprite is pinned and on jump unpin the player and have a jump action. When the player lands again, repin the player.

  • A global variable is global and as such can be used in your whole project. If you'd like the variable to have different values in different levels you will have to set these values in the event sheet.

  • So on overlap you set animation and directly destroy saw.

    if so after saw is destroyed there is no overlap anymore and slime overlaps background again and as such reverts to run animation.

    so the animation will only play one tick.

  • Would putting them all on a seperate layer and setting that layer visible/invisible work?

  • Yesterday there was this topic about melee..

    You mean something like that?

  • Your event is happening every tick for 12 seconds, adding a trigger once condition should take care of it.

  • If the string is always 25 characters long, you could easily send the numbers into an array with:

    left(text, count)

    Just repeat it 25 times with count 1 while deleting a number from the left side of the text.

    From the array you could set up the actions to perform when a value (x) is a certain number/letter.

    Come to think of it, you wouldn't even need an array for it.. haha

  • Could it be your events are set up in a way the animation isn't playing?

    Are you sure there isn't a conflicting event setting the animation to another?

  • Are there any other events overruling the change of bullet speed?

    What are the settings for acceleration?

    Is bullet enabled and or disabled?

    For it sounds like what you are trying to do should work if there are no conflicting events.

  • You could create a global variable MouseButtonDown

    System every x seconds

    -system add x to MouseButtonDown

    That way you would now precisely how many seconds the button was down.

  • Which browser do you use?

    Is it set to emulate desktop behaviour?

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • 1. a) Can pin be used to pin a sprite to the mouse location? I was thinking of making it invisible then showing it when the left mouse button clicked. Otherwise I can just create it at mouse X & Y when the button is clicked.

    You could just use:

    system every tick

    • sprite set position : mouse.x, mouse.y

    1. b) How would I use distance() to destroy all instances of sprite 'enemyship'?

    On mouse clicked

    For each enemyship

    system compare two values : distance(mouse.x,mouse.y,enemyship.x,enemyship.y)<200

    • enemyship destroy

    4. Would you have an example of how to use choose()?

    system every x seconds

    • enemy spawn bullet : imagepoint = choose(1,2,2,3,3)

    6. Thanks I can do that, just thought it would be cool if we could specify the exact area of the main sprite

    I'm not sure what you mean by exact area of the main sprite

LittleStain's avatar

LittleStain

Member since 26 Apr, 2011

Twitter
LittleStain has 4 followers

Trophy Case

  • 13-Year Club
  • Email Verified

Progress

14/44
How to earn trophies