Nahuos's Forum Posts

  • Hello! Another question today haha!

    I was wondering how to do this? Like they do in several games like Rogue Legacy, Nuclear Throne...and so on.

    Does anyone know how to get this done in Construct 2? Or can anyone explain me how to make it work?

    Thanks in advance and have a nice day!

  • What you are looking for is the sine behaviour

    how to apply it:

    add to your bullet_sprite a bullet and sine behaviour

    now in the sine behaviour change the movement to vertical and magnitude and period (e.g. period 0.5; Magnitude 200)

    I feel so stupid for not realizing such a thing existed lol...Thank you very much though, I appreciate the fast response!!!

  • Hello everyone!

    I was wondering if anyone knows how to make a bullet that goes up and down in a wave form.

    http://sciencenetlinks.com/media/filer/ ... _wave2.png

    Thanks in advance and have a nice day!

  • Hello everyone!

    The title is pretty self explanatory.

    I have something similar but it doesn't look as smooth, any ideas on how to fix this?

    Thanks and have a nice day!

  • Good news everyone! I finally fixed it! Thanks for the help! I ended up doing something entirely different though!

  • > BUMP:

    > So I think that I need to make it so that when A (Left) is pressed, D(Right) cannot be pressed? Anyone knows how to disable a key while another key is going on perhaps?

    >

    Please don't bump your own post after only 3 hours.

    The users who generally try to help come from varying timezones, so a little patience is necessary.

    It is acceptable to bump if you haven't had a response after a day or so.

    Sorry about that! Won't happen again!

    > BUMP:

    > So I think that I need to make it so that when A (Left) is pressed, D(Right) cannot be pressed? Anyone knows how to disable a key while another key is going on perhaps?

    >

    Something like this should work for that:

    On A pressed

    D is not down

    > set direction to left

    on D pressed

    A is not down

    > set direction to right

    Did not work...haha I need to find a way for the computer to think of pressing A and D as they're next to each other, but it seems to process whichever is placed first.

  • BUMP:

    So I think that I need to make it so that when A (Left) is pressed, D(Right) cannot be pressed? Anyone knows how to disable a key while another key is going on perhaps?

  • Why is your character direction set to RIGHT when pressing left?

    The animation mirrors so it is the same thing as saying LEFT walking animation.

    well that is because i guess u made the events on release button or once pressed on one of them, is a basic mismatch that most people dont see as how things work in c2... C2 takes every line of code as you lay it down in the event sheet. so if u tell it play animation left for example when A is down its going to do so... as for playing an animation when was pressed... thats a totally different logic... and has a different meaning if u try to understand it a bit more then a quick glance... try swapping from pressed.... to IS PRESSED or IS DOWN that will fix it however... the last key u press is going to be the last that will be triggered so if u press AD and the delay between them is by 000000000. pico something the very next one pressed down will be the one animating ur character.

    for better ease of understanding...

    Was pressed condition triggers one time if the button was sometime pressed and the events or actions are not in play - sometimes they might even overwrite each other but wont be a big glitch or something visible

    IS PRESSED condition triggers if u keep pressed the button down ... once u released it it stops... this is what i suggest u to use to avoid any other future coding problems in C2 same logic can be applied to on mouse button or touch... they all have same conditions

    on release condition well obviously ... when the button was pressed and is released the animation or events will trigger one time unless its a looping animation

    thats how far i can remember for the keyboard customization's and as being relative correct to ur problem.

    dont beat yourself to fast... its usually a pretty easy solution 99% of the time , and also 99% of the C2 coding problems are made by programmers or because we get hyped by the easy system of getting things done fast and so smooth with it that we dont double check it.. or we dont try understand it a bit further, since its a no programming required software we expect things to happen by themselves which most of time do... but we need to understand how to make those things make sense to the machine we are communicating with... i get it .. been there done that..

    hope it helped you out.... also try reading the manual its pretty easy to understand and a complex lecture also covers a lot more then keyboard using... will really help you out on some cool stuff that will ease ur work in future.. if u got time for it.

    extra tip if u dont have different conditions that has to happen on the same key... dont use nothing else but IS PRESSED DOWN same for mouse/touch relative to movement other conditions relative to pressing are a dud and will only confuse u (for clicking u can easy use TAP touch object applies to browsers and mobiles directly i never used mouse rarely when i really need some extra thing from ti that touch doesn't had it before... but now there is no need for mouse object anymore)

    C2 basic friends conditions that i prefer and recommend because they never let me down - touched - on TAP /for objects clicking simulations /is in touch - is down - for dragging motions or movements with keyboard or any other thing... i strongly dont suggest using on release... 80% of the time will not trigger and if it does will trigger wrong cause u might release and click again to soon

    there is one maybe exception for the -release- condition one where u dont use it for fast interaction cause - on release- condition will have a tactile delay triggered by human response which means the delay between touching and releasing the button... most people want stuff to happen when they click it not when they release... it makes perfect logic.. we dont want to wait... we need that speed lol ......... monkey brain i guess not developed.

    remember.. is pressed down.. usually is used for moving objects... for playing animation to work with it u have to get more specifics in sub events if needed

    Well, that does not work...I need to find a way that when I press two buttons only the last one takes effects. Tap touch will not work with my type of game.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Hello everyone! I am having a problem with my character on my platformer game. Everytime I use the key pressed A or D at the same time, my character does not move at all and runs the Walk Right animation forever. This also happens when I Jump+A+D. The character jump, moves to the left while in the air, but when I press D it goes straight to the ground and stops moving and plays the Walk Right Animation.

    Any clues on how to fix it? https://gyazo.com/859d7349ec1abdfa03c165a745ddeb84

  • If you can explain what you would like to do different than any of the many examples in the threads in the search, it would maybe be easier to answer your question..

    There are so many different examples of randomly and/or proceduraly generated maps and ways to do it, what would you like to be different?

    I've seen that some people make pre-made rooms and hallways and then they just randomly place them in space. They connect them and then check for errors. Is that pretty much it? Or are there other ways to make it work? Perhaps in a better way?

  • Did you try the search?

    I did look into that, but I was wondering if anyone had any other ideas on how to make it happen.

  • Hello everyone,

    I may have posted a similar topic already and if I did, I am sorry! I am planning on making a game similar to Rogue Legacy or the Binding of Isaac. I am interested in how the maps for those games are pretty much randomly generated. Does anyone how to make this happen in Construct 2?

    Thanks and have a nice day!

  • Hello everyone! This is some of my art! It is mostly pixel art though <img src="{SMILIES_PATH}/icon_e_smile.gif" alt=":)" title="Smile">

    Couldn't post some GIFs and some other drawings, but you can look at them here:

    http://iseapixels.tumblr.com/

    https://instagram.com/iseapixels/

    https://twitter.com/iseapixels

  • GenkiGenga Thanks again, I will try and see how it goes I really appreciate your help again!

  • You could try the MoveTo plug-in from RexRainbox:

    http://c2rexplugins.weebly.com/rex_moveto.html

    Example

    Thanks I will