viniciuscgp's Forum Posts

  • I dont know Construct Classic, so what is a 'Family' in C2 context?

  • Im creating a very simple game. The game consist in a plane like 1945 game. My problem is that I created the fist wave of attack with one enemy. When you kill some enemy the next wave will attack, but I dont want to reprogram all actions to the new enemy.. So I test the collision with the ship and with the ship fire with one enemy, but if I have ten enemy I have reprogram all?? Its really annoying... How can I do this without have to reprogram and test all ten (or more) enemys?

  • Ashley: Ok friend I will send the .CAPX to you.

    Thanks!

    Sended to you via PVT.

  • I think you did not understand my reasoning. The use of the loop was only to address the lack of an "else". See this example on a hypothetical programming language:

    repeat (1)
    {
        if (visible) then
            visible = false
           break; / / here I get out of the loop to not run the second test
                       / / is like a goto the end of the loop
                      / / else it because we have not
       endif
       if (not visible) then
           visible = true
       endif
    }
    

    See what I was saying?

    Btw, the problem was solved.

  • I tryed flash behaviour and doest worked... I ever try a premade behaviour beefore trying to create one by my self...

    I dont know why its doest worked because its a simple sprite....

    But anyway its working now using the miraculous "wait" ...

    Ashley:

    You should allow us to set a boolean expression with our own expression, like when we set an integer. If so, we could use thing like:

    visible = not visible, and even more complex expressions.

    Thanks

  • hum.. nice solutions. Thanks a lot.

  • My game is working nicelly. But now Im creating a simple splash screen and Im stucked on it! Its really annoying bacause I cant do a simple object blink!!!!!!!!!!!!

    See the pseudo code bellow (is what I need)

    Every 1/2 of a second:

       some_object.visible = not some_object_visible

    Its the only thing I need. I tryed to use Blink behavior and doest work. So I tried using events and does'nt worked. So, I want to know whats the sample form to acomplish a task like that. Thanks in advance.

  • I did not know. I thought the "Stop loop" to end the loop at the time, even think it would be more correct, how it works in programming languages??.

    The wait command immediately ends the event?

    I think the loop should end because it makes it totally different than expected, and makes people experienced in other languages ??do dumb questions like I did ..

    Thanks for the help.

  • I know there's a behaviour to make this work but why its not working? Se the pic below:

    <img src="http://dl.dropbox.com/u/16702799/temp/BLink.PNG" border="0" />

    Its should blink...

    Thanks in advance!

  • Wow thanks a lot exactly that I was needing... Sorry about this question but I really not found this...

    Btw, I used For..Each loop with a local variable to count.. but its slower than using Count.

    Thanks!

  • How can I know how many instances of a object I have? I need to create a for each loop to count or C2 has a faster and clean way ?

    Thanks in advance

  • I came from GM too, and Im using it yet. But now that I get the "C2 spirit" I can create a game really easy. I buyed a copy of C2 and Im so happy with it. The C2 manual is being updated a lot and the foruns ppls are really awesome. And one more thing, GM doest have a physic engine without use of external DLL. C2 have a easy to use Phisyc engine and its built in! (Im want it to be more fast though...) :D

    flws!

  • Im using C2 to create IPad and IPhone apps. Its working really nice! Now that I just finished to create thats apps and now Im creating a game. So, C2 can be used to create HTML5 apps too.

  • Pode: Cool! I will try that, thanks a lot!

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • A while ago, I had read an article here in the forum on how to create a virtual joystick, I think it was the Kyatric, but I can not find, someone could give me a light (link)?