Mimiste's Recent Forum Activity

  • You can't do that in C2, and you can't do that in any javascript application because at this moment when the javascript is executed, it's too late and you can't intercept and modify the header sent by the server to allow CORS.

    The chrome extension is working because it can intercept the header and modify it before it is parsed by the browser.

    In fact, what do you want to do with that ? If you want to access a server on an other domain you own, you can configure the server to allow CORS.

  • hello

    create an instance variable for your sprite like "instance_name"

    assign a different value for each button "button1", "button2" ...

    make multiple "ontouched" event and in the same event compare the instance variable of the touched sprite so if it's "button1" you make a particular action, if "button2" an other action ...

  • Hello

    what i would do :

    create an instance variable in the health bar called "monster_uid" for example

    use "spawn another object" to create the bar and set the "monster_uid" instance variable to the uid of the monster

    when a monster take damage, pick the bar by the uid of the monster

  • Yes i think it's because of that. The behavior is executed after your event.

    So if you move the cursors to -10 (outside the layout)

    in the same tick

    • The bat X is set to -10
    • The ball X is set to the bat X (so -10)
    • The behavior is executed and set the bat X to 0 to get it inside the layout but it's to late for the ball, it is set to -10 and will stay here
    • The screen is rendered and you see the ball at -10 and the bat at 0
  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Hello

    Your global variable "dir" should be an instance variable of the ennemy sprite to be unique to each ennemies

  • I think it's because the position of the bat is set to the mouse.X

    then the position of the ball is set to the bat.X

    then the "bound to layout" behavior set back the bat.x to the right position.

    you should use the pin behavior and pin the ball to the bat instead of manualy setting it's position

  • Hello

    You have to make a "for each loop" on object1 and now you can pick the nearest object2 in a sub event. Be careful of the origin point of your objects.

  • Families and containers can help you achieve this but I admit it's not as practical as a "MovieClip" in Flash for exemple.

  • Seems like the problem is related to the graphic card used when launching Construct 2

    I'm using for work a laptop with switchable graphic card

    I dont know why but a recent W10 update messed with the switch functionnality of the graphic card and it was only using the "intel HD 3000" and not the Radeon

    I reinstalled the drivers and set the Radeon as default graphic card and now it's working.

    If I switch to the intel HD, I have this error when opening a layout

  • hello

    I have the same error since today on Windows 10 pro too.

    I can open capx but can't open any layout in the editor. It crash with this error.

    And so i can't open capx where a layout was opened.

    graphic drivers are up to date

  • up thanks

  • Hello

    I have a problem with physics behaviour and i hope someone will be able to help me

    I created two ropes (thanks to a method by R0j0) and attached the last part of the ropes to a sprite but it's really not working as i expected...

    Here is the capx, you'll understand what i mean...

    https://dl.dropboxusercontent.com/u/5129970/constructforum/rope%20panel.capx

    Thanks

Mimiste's avatar

Mimiste

Member since 2 Apr, 2013

Twitter
Mimiste has 7 followers

Trophy Case

  • 11-Year Club
  • Coach One of your tutorials has over 1,000 readers
  • Educator One of your tutorials has over 10,000 readers
  • Email Verified

Progress

14/44
How to earn trophies