LittleStain's Forum Posts

  • You could look at the move to example shipped with Construct2..

    It uses the bullet behaviour..

  • This is the "How do I" section of the forum..

    My intention was to explain to you how you can do it..

    If you can understand why the conditions of event 3 and event 11 can be true at the same time, you can change the conditions, to make sure this isn't the case anymore..

    Also it won't be hard to find other events that have the same issue..

    Seeing why events may conflict and knowing what to do to make only the event you want to execute actually executes will be of great help..

    As I suggested in a previous thread, one way to prevent two animations running at the same time, would be to add a condition "animation is not playing" to one of the events, in this case another way would be to add a "shift is not down" to your event 11..

    But this will not prevent the issue from arrising again unless you understand why this is nescessary..

    Also, depending on what you would like to add in the future one of those solutions might not fit your need..

  • Please explain what part of my answer to your question you don't understand!

  • I don't know what the wrap system is..

    You could create events to change the width and the height of your cannon-sprite, if that's the efffect you are after?

    Should be relatively easy to do..

    If you are looking to use effects for it you could search the effect part of this forum to see if any fit your need..

    Also a plugin like litetween might get you some nice results, you can find it in the plugin section of the forum..

  • There are more events that can be true at the same time..

    This was just an example..

    You will find several similar events in your event-sheet..

  • Like you said..

    Creating an animation for it would be the first thing that comes to mind..

  • event 3

    if shift is down and right is down - set animation to run

    event 11

    if right is down and down is not down - set animation to walk

    both these events are true when both shift and right are down, so both events will have their actions executed..

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Please check my capx ok?

    Like I told you last time..

    I did..

    The question is the same, the answer is the same..

    Add conditions so only one event setting animations is true at the same time..

    The way you do this is up to you..

    You asked for a suggestion in the last thread after I already gave you one..

  • Using object.physics.velocityX and object.physics.velocityY you can get the pixels per second the object is moving in horizontal and vertical direction..

    Without having to use math

    angle(object.x,object.y,object.x+object,physics.velocityx,object.y+object.physics.velocityy) should get you the current angle of movement..

  • Ah sorry, I already told you this before..

    Here's some reading material

    How events work

  • Sounds like you have conflicting events..

    If you have more than 1 event setting animation where the conditions are true, both events will run its actions resulting in restarting the animation every tick and therefor only displaying frame one..

    Add conditions so only one event is true at the same time..

  • From your explanation it is unclear to me how you have this set up..

    How would the program know you already have berries and how many you already have?

    Are you using variables to keep track of this?

  • I suggest searching the forum for split screen..

    You'll find adjustable examples..

  • I'm not sure why this version is linked..

    It's not finished, I was adding some more functionality, but ran out of time..

    In event 10 I set the instance variable SpriteUiD of the text-object "notavailable" to the unique ID of the associated background..

    In event 7 I want to perform actions on the background associated with the instance of "notavailable", I have to pick the background and do that by checking if its UID is the same as the instance variable of the texobject..

    Like I was saying, this example was not finished completely, althpugh it does most of what you asked for and more..

  • I guess you want the opacity?