0 Favourites

[R73] Physics ruins Project!

  • My Pinball CAPX I recently compiled to give an example here, now is somehow ruined. I have not teh slightes idea why this happend.

    This is the preview screen in FireFox:

    <img src="http://quak.laurig.de/step11.JPG" border="0">

  • In german, huh? That means the browser halted script execution for some reason, typically when the script keeps running indefinitely and blocking the browser. There may be some nasty unescapable loop or a huge loop.

  • Thats why I included the CAPX so every can see for his self in his own language environment

  • something is wrong with the revolute settings, dont know what but the error is coming from that

    no i dont know, maybe because its on the same object

  • So C2 should issue a "Warning" if something like this happens....

  • Construct 3

    Buy Construct 3

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

    Buy Now Construct 3 users don't see these ads
  • it probably should, have also had some trouble testing the revolute thing, but i guess it was because i dont understand how it works enough

    etc, what is connected to what and how and what are the limitations,

  • me too...I am just using trial and error to understand. Building a PinBall is a good learning task....

    BTW: Are there plans to have C2 to diferentiate between different layers of physic? So that one could build "crossovers" and "underground" paths? like Bridges and tunnels?

  • BTW: Are there plans to have C2 to diferentiate between different layers of physic? So that one could build "crossovers" and "underground" paths? like Bridges and tunnels?

    You can already do this using variables.

    WARNING, pseudo code incoming:

    -Ball is on the "lower level" -> set variable "ball-level" to 0

    -If variable "ball-level" is 0 and ball collides with "upper level" -> Do not collide with "upper level"

    -Ball touches "start of ramp" -> set variable "ball-level" to 1

    -If variable "ball-level" is 1 and ball collides with "upper level" -> collide with "upper level"

    More-or-less you would use something along those lines so that the ball will only interact with objects it's supposed to at the time. You would need to plan out your table nicely and figure out where and how you would set the variables for the ball, including if it rolls backwards (because it didn't have enough velocity). IT could take some tweaking to get it right but that would easily work.

    ~Sol

  • Hey Sol...

    I doubt, that this "workaround" will work for object with physic-behavior.... <img src="smileys/smiley19.gif" border="0" align="middle" />

Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)