brunosxs's Forum Posts

  • Wow, the CHAIN is exactly like it!

    Nice way

    Clever use of families. I tried using families in a way completely different. No wonder it didn`t worked.

    Thanks! This could help tremendously in a procedural generation of anything.

  • Well, there are many ways to implement things like that. You could put the guns as separate entities and this is where this little feat could shine.

  • For an example: If a character changes a weapon, say, from a handgun to an heavy one, the imagepoint which the bullet would come from, would definetely change. I think it's easier to code this rather than change in the image editor.

  • hey no problem. I appreciate your effort.

    There should be a way to do this... I thought about arrays but couldn't implement anything. Because it all comes down to the selectors.

    As I said earlier, if we could make the selectors more flexible with an expression, just like there is in other languages, this would be easier.

    I'm thinking of venturing myself into pluguin creation to see if I can inplement something. But that's for another time.

  • Using the capx as an example:

    I want that just by putting the lamp in any place of the layout, the code would work to create the wires till the top of the screen.

    To create it till the top is possible as I managed to do, but to make the revolute joints follow in place has proven an impossible task till now.

  • I just changed the saved version parameter in the xml and now it's opening fine in 163.

    Here it goes

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • While I'm downloading and porting the code to the 163, I made this sshot:

    http://s8.postimg.org/wt1enjzph/lamp.jpg

    The code is not finished so I didn't bother to actually make the spawning of chains to stop once it reaches the top.

  • Sadly, I have already saved over the cap with a more raw approach(linking each one by an event...)

    I couldn`t make it work because there was no such selector, but anyway, I can recreate it and post it here so everyone can learn.

    But there`s no need for hiding the code.

    I have now the last beta r167.2

    Oh, and of course, thanks for at least try.

    EDIT: Here it goes, the cap made in r167.2

  • I thought about families, but it would not prove to be the best solution.

    You see, think about a chain. This chain will go from point A to B.

    What I'm trying to do is, by loops, creating the links at runtime by just passing the position of A and B and bound each one of those by a joint.

    So the first will be bound to the second, while the second will be bound to the first and the third, and so on...

    The code would look something like this:

    While Chain.Index > 0 do:

    Chain(ObjectsCount) Create physics joint to Object(ObjectsCount+1)

    Add 1 to ObjectsCount

    But my attempts so far have proven fruitless, no matter how I try to approach it.

  • Hello,

    Construct 2 is a great program and I know it's impossible to please everyone, but this little feature could save hundreds of "lines" of code...

    Say, if instead of the menu that appears when you are selecting an object, you could instead select it by an expression?

    What I'm trying to do is:

    I'm trying to create at runtime a chain that is made of blocks that goes from point A to B and they're all instances of the same object. They also are meant to be joint by the physics behavior.

    How do I accomplish this? I want to make a code that is more reusable than creating the joints one by one.

  • Hello friends.

    I've been using construct for some time now

    I was trying to do something that construct is not really suposed to. Just to test myself.

    So I thought: "What about an website?" In the end, everything is an application runing on the browser ,right?

    But, you know, I've been missing the possibility to make css rules and interactions troughouth it. Like, by using the power of CSS direct in my project trough events.

    Is it possible? I'm a bit out of place, construct 2 is growing so fast with versions bringing so many adittions that maybe I'm missing it.

    I was also thinking:

    How hard would it be for someone like me: A webdesigner with a little knowledgment of javascript to find my way on the SDK and develop a plugin that does just about this?

    Thanks.