LittleStain's Recent Forum Activity

  • What do you mean by other side?

    Only one side is in front of the player right?

    If you are mirroring the player, The players angle stays the same, only the animation is mirrored, so you would have to create a different event for that..

    From the top of my head, when mirrored to get the same effect, the angle(player.x,player.y,mouse.x,mouse.y) should be between player.angle+135 and player.angle+225

  • I have 2 different colored unicorn, each has 2 direction, left right.

    So I have 4 animation:

    Red unicorn facing Left

    Red unicorn facing Right

    Blue unicorn facing Left

    Blue unicorn facing Right

    I remember my last X position so that i can see which direction the unicorn is moving toward (left or right, ignoring vertical motion).

    See attached.

    I don't understand why but "R_Left" animation is always playing even when unicorn is moving toward right.

    What is wrong with my set up?

    I'm not sure which behaviour you are using for the movement of the unicorn and if you are mirroring/rotating the sprite..

  • Would putting the dictionary object in a container be what you are looking for?

  • There's no problem with different instances showing different frames..

    You don't even have to do it through events, just change the frame in the properties of the sprite in the editor..

  • What would be the benefit of having that large a text-box?

    Why not use multiple or split up the text?

  • Would this work?

    sprite set variable amountofmoney : 10*sprite.GoldBars

  • Well, yes?

    You can make a custom loader screen and only go to the layout on all items get?

    https://www.scirra.com/tutorials/318/ho ... ng-screens

  • Changing the image of a sprite would be as simple as attaching an action to set frame or animation..

    If you want to create a sprite with the same animation you could try something simple as this

    sprite on destroyed

    (local variable text)

    set local variable text to :sprite.animation

    system create object sprite

    sprite set animation: local variable text

    Example

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Is this the condition you are looking for?

    system is between angles: angle(player.x,player.y,touch.x,touch.y) is between player.angle-45 and player.angle+45

  • What is the scene?

    Do you mean the Layout or the Viewport?

    To get a random value you can use the random() expression

  • So at least the for each is working as intended..

    The problem seems to be in the function, somehow the picking doesn't work as expected..

    Could you unfold everything inside the function?

  • you mean something like this?

    bullet on collision with monster

    monster spawn weapon

    monster destroy

    player on collision with weapon

    (add the actions you need for when the weapon changes)

    one of those actions would probably be setting a variable on the player to determine which weapon he is carrying, so your "shooting"-event can be adjusted for different weapons..

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