Lunatrap's Recent Forum Activity

  • Arima

    very interesting

    but i still think is cumbersome that we needto make counterintuitive coding...when i could be fixed with a "trigger once" that worked for instances...that would fix all, i have zero knowlegde about HTML5 and Java, so i dont know if this have not been added becuase of limitations...in that case im sorry, but if not...then i think this should be adde asap

  • like sqiddster said....trigger once does not work :/ thats my problem

    state machine?? i have read about that...i saw a plugin made by some users that creates it, but...why oyu needto use third party plugin?? its cumbersome :/

  • Hello i cameto a problem with C2, when it comes to make Complicated AI for a platformer game...its nearly impossible, and while is not 100% impossible, its really overcomplicated and nearly impossible... why??

    well, fisrt of all i might be a noob, so if you can disprove my point, please do so.

    i manage my AI with instance variables...since is the best option to pick the correct instance...

    but when it come to make an action that is triggered by a instance variable...for example to start a Timer once...then its very cumbersome, sinceyou need to changethe instance number or state at the end of the action to make it trigger only once...

    for example:

    if enemy is overlapping at offset (X: -100) the player

    set enemy variable to 1

    if enemy variable = 0

    Move

    if enemy variable = 1

    Dont move

    if enemy variable = 1

    start timer

    On enemy Timer ends

    make an attack

    (if you pay attention....this wont work...becuaseit will trigger every tick...so you need to do this)

    if enemy is overlapping at offset (X: -100) the player

    if enemy variable is 0

    set enemy variable to 1

    if enemy variable = 0

    Move

    if enemy variable = 1

    Dont move

    if enemy variable = 1

    start timer

    set enemy variable to 2

    On enemy Timer ends

    make an attack

    is there any other way to trigger once an action when a instance variable changes without having to change the number of the variable at the end???

    is it so hard to integrate a trigger once that works for instances??

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • necromaster thanks a lot for this awesome effect

    i will include your name in my game

  • The keyboard object has a "Keyboard.LastKeyCode" expression which returns a number representing the last key pressed (which you can store in a variable), and a "On key code pressed" trigger which receives the key code as a parameter. You can create variables to store the KeyCodes currently assigned to each action in your custom controls, and then use the "On key code pressed" trigger to execute them.

    I attached an example capx

    wow!!! thanks!!!

  • hi guys...do you think is possible to have the option of rebindable keys for the control of the game

    as long as i can tell, there is no way of tell what buttom in the keyboard is being pushed,it would be nice to get the input and be able to store it in a variable

  • this 2 errors appears when i load a saved game on a certain layout...this does not happens on all layouts...so im not sure what is the problem!....does this 2 error tells you any hint of what could be wrong??

    Operating System and Service Pack

    win8 64bits

    Construct 2 Version ID

    r173

    UPDATE: i found that if i save in a layout wich has any enemie done with Spriter and load that save, it will crash with this error msg, since spriter uses contianer...i tried doing the process but eliminating any spriter enemy in the layout...and it did not crashed...any idea?? lucid maybe any hint???

  • zenox98 yes i use the autosave and 3 backups... the fact that you tell me that you dont crash and you dont use autosaving is very interesting, i think im going to test that out

    sqiddster yeah...your description of the problem is 100% accurate...

  • Ashley 250+/- objects most of them are text...

  • Nitro187

    i feel you its so irritating!!

    but im starting to get used to it... and yes.. it crashes 90% of the time at previewing but 10% of the times, it will crash it self, and this is is most annoying one becuase i always save before preview so i can predict a crash, but the other one it unpredictible...

  • rexrainbow i understand that.... but is it that hard to make it?? i think it looks like a easy plugin...

    Sethmaster i will check it out, thanks!

  • Hi guys...scirra released slider bars on the last update...but i have a question?? why do they look so generic and ugly?? i want to ask to work on a Customizable Silder Bar where i can set the image of the bar and the slider and have the ability to animate the two, becuase i use 2 frames, when its selected and when is not...thats all i ask...

    knowing that this community has some many talented people like rexrainbow, R0J0hound, Pode, septeven, linkman2004 and much more... C2 has the official textbox plugin, without any custom options.. and seeing that someone did advanced textbox plugin that allows to set color of the box, color of the text and more... i wont be surprised of some of you will make something with the slider plugin... becuase right now...it looks lame

    thanks a lot...i hope this becomes real...

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