LittleStain's Recent Forum Activity

  • C2's destroy should work just fine if implemented in the right way..

    There must be some settings and/or events that produce the unwanted effect..

    I can only guess, because I haven't seen your events and or game, but maybe enemy HP is a global variable and you are not resetting the variable when restarting layout?

  • Well we could go and guess what you are doing, or you could show us..

    I'm not sure what you mean by a spawner, as far as I know there is no spawner object in C2.

    you probably mean either the sprite spawn action or the system create action..

    Both of these create objects at a location you specify, but neither has anything to do with the fact your enemies all act the same..

    If you want a specific enemy to do a specific thing while other enemies do other things, you should make it clear in your events which enemy you want.

    My guess is you are using the system compare action, which doesn't pick any instances..

  • I don't understand any of the --- or ### , so without any further explanation I don't understand the question and as such won't be able to provide an answer..

  • There is no right or wrong, it all depends on what you want and/or feel comfortable with..

    You already say you want to open a window, which is a choice, because you could also just animate the menu to show the options.

    Creating a "pop-up" could be done by revealing a layer, but also by creating all the new elements in events and/or changing the function and look of elements already on the screen.

    Layouts are separate, so one layout can not be shown within another layout, global layers are available though..

  • RamPackWobble

    we already got alot further in this thread:

    But maybe you could shine your light on it..

  • > ( Global or local variable can also be object variable )

    > Add Variable Charge set to 0

    > Add Variable Damage set to 2

    >

    > ( Event for the "Charging" effect )

    > Event :

    > If Charge = 0 ----> Damage = 2

    > If Charge = 1 ----> Damage = 3

    > If Charge = 2 ----> Damage = 4

    > If Charge = 3 ----> Damage = 5

    >

    > ( Event for set the maximum charge of the Weapon )

    > Event :

    > Evry tick --->

    > Charge = ( Max Charge for exemple 3 seconds ) 3 ----> Set Charge to 3

    >

    > ( Event who define how many time you charge your weapon )

    > Event :

    > Evry 1 seconds ---->

    > On mouse button is down ---> add 1 to Charge

    >

    > ( Wepon event )

    > On Mouse button released ----> Spawn Bullet

    > -----> Set Charge to 0

    >

    > ( Ennemy Side )

    > Event :

    > On bullet overlapping ennemy ----> Destroy Bullet

    > -----> Substract Damage to Ennemy.Life

    >

    > Hope it's what you need ! =)

    >

    and if i have 4 different projectile sprite? there is the basic bullet, the lvl 1 charge, lvl 2 charge and lvl 3 charge how would i make that?

    Couldn't you just use instance variables on the projectiles?

    Oh If you mean you have different images for the different charge, the easiest way would be to use frames or animations for them and set them according to the projectile charge.

    Or on bullet fired and charge=1 spawn lvl 1 charge, on bullet fired and charge=2 spawn lvl 2 charge

  • What do you mean by the next screen?

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • that was it. Thats exactly what i was looking for, just didnt know how to do it It actually still bugs out a bit for some reason if you fiddle with it,the top part gets stuck for some reason sometimes, but this works for me though.

    Thats a great example to make it a "tank-like" movement, my guy is going to be a soldier so cant have that clunky movement going on

    my sincerest thank you!

    Yeah, there is still a lot that can be optimized, but this is a good step in the right direction..

    What do you mean with clunky movement?

    increasing the clockwise rotationspeed will take away the slow turn, but keep some kind of turn instead of changing directions instantly..

    I think it looks perfect for a soldier at 22.5 degrees every tick (but ofcourse these are estethics)..

  • 600 separate button objects?

    Why not 600 instances of 1 button object?

    All you'd have to do is give them all the variable and on start of layout set the text to the variable.

    Then on button clicked check the variable to see the function..

    But I might understand it the wrong way..

  • This is the best I can come up with for now..

    Not perfect, but pretty nice, if I may say so myself..

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

  • It seems like button.text is not available.

    You could ofcourse give the button an instance variable and set the text of the button to the instant-variable so you could later use button.variable to get the button-text.

LittleStain's avatar

LittleStain

Member since 26 Apr, 2011

Twitter
LittleStain has 4 followers

Trophy Case

  • 15-Year Club
  • Email Verified

Progress

16/44
How to earn trophies