Lunatrap's Recent Forum Activity

  • Everything seems ok, unless Hp and MaxHP aren't number variables, there's no reason it wouldn't work.

    they are numbers....

  • hi guys im triying to get the % out of a variable "hp" to variable "max hp" and set it to a variable "% of hp"

    im doing this

    set variable "%_of hp" to

    HP / MAX_HP * 100

    but it does not seems to work...

    can you please helps me???

    see the image below...

  • Lunatrap Sorry for the offtopic, but can you tell me what font are you using ?

    Fully Completely BRK

  • Could you check whether your nodewebkit is using canvas2d instead of webgl? If so, refer to

    i will check it out, thanks!

  • Hello, im having problem with the FPS of my project

    my project its at 1080p (1920x1080) window size

    and when i run it at my Monitor resolution (1360x768) it runs at 60 FPS with nodewebkit and chrome

    but when i put my screen at 1080p and run it (not my monitor resolution), with nodewebkit it will run at 30FPS and with Chrome at 60-58FPS

    im a little concerned becuase i will publish my game using nodewebkit on steam, why does nodewebkit run worse than chrome??? they are not suppose to be almost the same??, you can see the screenshot below, you can see how much of video memory my game is taking, so is not that im using big sprites...

    i have a very sour taste on why does C2 or HTML5 does not have the option to choose the resolution to fit the screen, instead of using black boxes and stuff like that, and it gives me the bad impression that C2 is not suited for pc games, but is more of a mobile games engine...im kinda dissapointed, can you tell me some good resolution tips??

    another thing, the new scaling option, wich its supposed to be the default before the update r169? low? medium? high? and what porpuse odes this has, since it cannot be changed While running the game? oes this mean that i must have 3 exports of my game to give my players the option to have low, medium and high scaling quality? why dont give the option to change it??

  • It works perfect

    Thank you Lunatrap

    im glad it worked

  • well, i think he is reffering to a chess game without AI

    in that case i think is possible... but not easy

  • well actually as far as i cant tell, a AI that plays chess its really hard... i dont think is doable, unless you use some extrange algorithm, i dont think is possible with standar knowlegde

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Lunatrap Thanks that actually worked fr me.

    I didnt think of using a variable to track another variable then just have it reset once a condition is met.

    Thanks for showing me this method and taking the time to write it out.

    no problem, im glad i can help =)

  • do this... =)

    look at the picture below.

    just susbtitute the name "layout6" with your layout's name

    haz esto... =)

    solo substituye el numbre del "layout6" por el tuyo

    mira la imagen de abajo.

    i think this should work

    if you dont find the layout name condition, im using the "compare two valuables" condition, and you compare it to the system expression "layout name" and set it to is = remember that to compare it with a string (letters) you need to add "" commas.

  • > maybe this fixes your problem?

    >

    yes its a lot simpler, the only problem i see is, when i dont move the enemy shakes, instead of staying still, any advice?

    use the platform behaviour and do this

    if player.x is greater (>) than enemy.x then -> simmulate control pressing right

    if player.x is lesser (<) than enemy.x then -> simmulate control pressing left

    to eliminate any kind of odd behaviour like the enemy geting to the same X as player and starting to freak out you should do this

    if player.x is greater (>) than enemy.x +20 then -> simmulate control pressing right

    if player.x is lesser (<) than enemy.x -20 then -> simmulate control pressing left

    im not sure about the +20 and -20 if it looks odd switch them around...

  • how aobut having a separate variable that add+1 every time that the main varialbe adds+1

    SO when the second variable gets to a number, you reset it back to 0 and then respawn enemies =)

    like this

    if player collects 1 coin

    then*add+1 to "# of coins" variable

    *add+1 to "# of coins to respawn enemy" variable

    when "# of coins to respawn enemy" variable is = to 10 or >

    then* set varaible "# of coins to respawn enemy" to 0

    *respawn enemy at ???.X & ???.Y

    does this work for you??

Lunatrap's avatar

Lunatrap

Member since 12 Jul, 2013

None one is following Lunatrap yet!

Trophy Case

  • 11-Year Club
  • Email Verified

Progress

12/44
How to earn trophies