venoxis's Forum Posts

  • >

    > > % is a symbol of modulo (reminder after division) e.g. 10%3 gives 1.

    > >

    > > If you want to check if player's health is more than 50% you should compare this: player.health/player.maxHealth>=0.5

    > >

    >

    > i want to check it in % because i might have the player max health be upgradable so 100% health could go from 100 to 150 +, etc...

    >

    > that's why.

    >

    Use a global variabe for Max Health and one for Set Health that way you can change it as the game progresses.

    MaxHealth=100

    SetHealth=100

    On Player Collision with Enemy: Subtract 10 from MaxHealth

    On MaxHealth < SetHealth/2: Change HealthBar Sprite

    That way you can change SetHealth later in the game to a higher number and the event adjusts. When you change SetHealth make sure you also set MaxHealth to that same number to start.

    i kinda got it to work on my own, but there is a problem, ive put the flash behavior on my tiled background but it doesn't flash when it should be =/

  • You need to set the layout's 'Unbounded scrolling' property to 'Yes'. Otherwise the scrolling will not be allowed to move outside the 500x500 layout area, which is required to be properly displayed when the window is larger than 500x500.

    how can i have the game be centered on the screen in crop mode? because its always to the left so there white on the right of the game

  • % is a symbol of modulo (reminder after division) e.g. 10%3 gives 1.

    If you want to check if player's health is more than 50% you should compare this: player.health/player.maxHealth>=0.5

    i want to check it in % because i might have the player max health be upgradable so 100% health could go from 100 to 150 +, etc...

    that's why.

  • i want my health bar sprite to change color based on a ''player'' sprite variable called health to change animation when player health is ≥ to 50% of player max health

    i can't figure out how to as everytime i try to use % in the value it say its missing something etc...

  • Try Construct 3

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

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

    > You should be able to use a different image per tiledbackground instance.

    >

    Sorry, yeah, it works for every instance of the same tile perfectly, just need to get an example made.

    please, could you continue your discussion in pm as i get notification each time you post on this super old forum post.

  • Maybe.

    also, link is dead

  • Maybe.

    i'd like to do that but without a pluggin, i don't know why this isn't part of construct 2 tbh

  • Would using On Clicked work in your situation?

    maybe but it would be a lots more work to do as i will have to do it multiple time and i need to have it stop when another one is selected

  • trying to make a sprite flash when a text box has focus but i can't seem to find something like ''is focused'' as condition

    what can i do?

  • Don't mind at all post it up so i can see.

    just found out that you awnsered to me cuz i didn't receive any notification.

    im actually working on a game like mega man x but without mega man because it's copyrighted

    but right now i can't do much more cuz ive hit the 100 event limit and i can't afford the personnal license

  • so, where is the tutorial? this demo feel great but there is no dash,walljump, ladder climbing. im working on a mega man x like game and got a good base for it so far with about everything but this one will much better

  • is there going to be a sale or something? because ive hit the event limit cap for my game and the game was going to be completly free so 150$ is kinda expensive considering im not gona make any income out of it as im too new to game making and doubt people would pay for the game, maybe i'll start a patreon but im still in need of an artist for the art.

  • not bad i hope you don't mind if i made some modification to it? i edited it a bit and made a mega man X engine out of 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?

  • thx, i'll try that so we can use the load image url with sprite that are in game file? =D