LittleStain's Forum Posts

  • Easiest way would be using the timer behaviour:

    Sprite1 on collision with sprite2

    Start timer "overlapping" for 2 seconds

    Sprite1 is not overlapping sprite2

    stop timer "overlapping

    On timer "overlapping

    add wanted action

  • This sounds like a simple picking problem..

    You aren't just picking the one chest in your events so the actions are performed on all..

    If you could give a screenshot of the relevant events on your event sheet or share your capx it would be much easier to explain how to get it right..

  • You've probably already seen the way it's done in the auto-runner example shipped with Construct2, which would be the wisest way to do it..

    In the effects part of this forum there is a webgl-effect that does exactly what you are asking for, but I doubt using that will increase performance compared to the above..

  • It's been a while since I've used it, but if I remember correctly, using is overlapping instead of on collision would help..

  • The custom movement behaviour has the "push out solid" action..

    That action should get you the results you want..

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • You can use the expression:

    angle(object.x,object.y,mouse.x,mouse.y)

    to get the angle between the object and the mouse

    So something like this should work:

    system is between angles : angle(object.x,object.y,mouse.x,mouse.y) ; object.angle-20 ; object.angle+20

  • Bumping your own thread after 10 minutes?

    Wow, that must be a record..

  • I guess it would consist of having a global variable and adding 1 to it every time the button is clicked..

    if the amount of what you want is reached show the interstitial..

  • Not sure why you'd need it, but wouldn't skipping the frame have the same visual effect?

  • Hey Kyatric!

    I opened your example and it looks like a good easy way to display own sprites as font.

    I also tried to understand whats going on in the eventsheet but i can't.

    1- Is it true that it replaces each character of a normal textobject by a single frame of the font u used?

    2- If its true: how c2 knows what frame should be displayed with each character of the textobject?

    3- I want to display the text of my dialogsystem. Could you give me a tip which of the events you used would be important for that?

    kind regards,

    spinat

    Construct2 now has an official spritefont plugin..

  • So if you want each weapon to have different actions upon firing, why would you need to call a generic fire function?

    You could ofcourse call a fire function and add the current weapon as a parameter and add the specific actions for that weapon in the function by comparing the parameter..

    I'm not really sure what the question is..

  • This question comes up a lot lately..

    Does this help?

    https://dl.dropboxusercontent.com/u/485 ... clamp.capx

  • I can't reproduce it either, you might want to try using bounding box instead of collision polygon for the physics settings though, couldn't hurt as far as I can see..

  • I do not understand.

    LordViperion, have you followed any tutorials?

    Behaviours can be attached to objects in Construct2..

    Here's a list referencing all behaviours

    Most of the time people use behaviours for movement and depending on which behaviour is used it will be a lot easier to answer your question.

  • Also I see you are using session key and local key for the webstorage

    The textobject is set to local value, while you are saving to session value..