LittleStain's Forum Posts

  • The browser object has a direct condition to check if the window is in landscape or portrait mode..

    If you'd like you could go to different layouts if so, but you could ofcourse also create a game in such a way that some things in the layout are rearanged depending on orientation..

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • The animation would work but then my character always rides the raptor, not just then when he collides with it.

    I'm guessing you put the else in the wrong place..

    The else should ofcourse also be a subevent of the playeronraptor = 1

  • Easiest way would probably be to put an else event under event 281 and put the actions of event 279 in that..

  • Construct reads events from top to bottom,

    so every tick playeronraptor=1first the animation default will be started from frame1, than if left is down animation running will be started from frame1..

    This will lead to the animation staying at frame 1..

    Like I said, both events are true, so both set the animation..

  • > 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..

    >

    U can post images for example to me understand? i'm beginner in construct 2 and this wil help-me a lot.

    Thanks!

    For something this basic, I don't think a screenshot will help..

    Everything you need, I have already written down..

    Even the beginners tutorial explains how to spawn items..

  • Could it be there is another event setting animation with conditions that are also true?

    Maybe an every tick set animation to "idle", or Player is on floor set animation, or something similar?

  • Well, it seems you are saving to localstorage every tick that playercoins > 0..

  • I don't think If set up correctly, it should be that noticable..

    You are not trying to load and/or save to it every tick, are you?

  • I'm sorry, but I don't understand what you are trying to do..

    Maybe "load image from url" is your aim?

  • 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