Smedis2's Forum Posts

  • Is it possible to create non-interactive demo scenes like an attract mode in an arcade game? I want to implement this into my game as one of the various idle-screens when you wait on the title screen for a certain amount of time.

  • Never mind, I fixed the issue. I had an event that I forgot about making the counter go up earlier in the event chain.

    Lock the thread.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Yes, I know I ask a lot of questions here, but that's mainly because I'm an idiot.

    Anyways, I'm trying to make an intro cutscene that types out text. The thing is, I want it to add to a counter variable when it's finished typing a string.

    "Texte" is the variable that I'm using for the strings that appear on-screen. I've tried various different ways to get it to try and get the cutscene controller to start for the end of a line, but I've had no luck. Instead, the counter increases no matter what, leading to the text changing very awkwardly and inconsistently.

    "Wait" is the variable that's supposed to create a delay between the different lines of text that are printed.

  • The "screens" are all on one layout, and they are the size of the game's resolution (so if the game runs at 256x240, a stage with 2 screens would be 512x240 in size). What I'm doing is making the camera move throughout a large layout, but have spots where objects/event triggers stop it from moving until the player reaches the edge of the screen/hits an objects that triggers the camera to move.

    I've successfully set up a system for a vertical version, but that's mainly because in most games like Mega Man, the screen doesn't move vertically so the camera is completely static vertically until the player hits one of the spots that triggers the camera pan. Horizontally, though, I run into a bunch of issues since the camera has to be re-aligned to the player's X position. The effect I'm trying to go for looks like this: https://youtu.be/JE2oujPetCw?t=56s

    While I am capable of doing the screen pan, I can't for the life of me figure out how to get the camera to *stop* when it hits a "screen" border. As mentioned before, the camera would either be a single pixel off, leaving a tiny spot of that shouldn't be visible... well, visible.

  • An issue I've been facing for a VERY long time in the many issues I've used is making a Mega Man-style camera system. I know how to make the camera scroll when you go to the edge of the screen, but I don't how to properly make it follow the player or stop moving without either having a single pixel annoyingly jut out from the cut-off point or just break in general.

    A system I had in place in a previous project was a camera object that moves at a set amount of pixels when you go past its X region, but that caused a lot of issues since the character in it had momentum while moving. There were borders that when the camera object collided with would make the camera move back by the same amount of pixels, but ended up being very problematic in the end.

    Are there any good techniques that could help me solve this long-standing issue of mine?

  • In some games, such as Mega Man (again), there are some enemies that have the ability to fire shots that somehow manage to both get your X position and yet at the same time throw shots in an arc.

    https://youtu.be/aZMXvt1kppc?t=1m36s

    Is there any way to possibly emulate this in Construct 2 (either using behaviors or purely through events)?

  • Hello! I've had an account here for a while now (and I've been putting it to use, as some of you may know), but I haven't properly introduced myself.

    I'm Smedis2, aspiring game developer and massive retro game fan. I produce most of my works under my RED-FIRE label, a name I've carried over from when I was little and make pretend games with.

    Before coming to Construct 2, I used Game Maker (8.0 was the newest one at the time I started) and Multimedia Fusion 2/Clickteam Fusion 2.5 (which I used for quite a long time). Somewhere along the line, I got tired of working around all of Fusion's quirks and issues, and used the knowledge I had obtained from using Fusion and applied it to Construct 2.

    I'm glad to say that I've been enjoying using it for the past few months. It's nice, it's clean and it doesn't make me want to rip my hair out (most of the time). There's a few little things here and there I feel that could be fixed/expanded upon, but for the most part it's pretty lovely.

  • How would I make a menu that, if certain objects have yet to be unlocked, it goes right to the next possible thing?

    Take this screencap from Mega Man 4 for example. Note the gap between the Mega Buster and Pharaoh Shot. Normally, there would be other weapons there, but since the bosses have yet to be beaten, the cursor instantly moves over to Pharaoh Man's weapon.

    The menu i'm currently using is a lot more vertical and simpler, but I'd still like for the same general idea to apply.

    Can anyone help me figure out a way of doing this?

  • > Is there any way to make objects from families share variable types, but give them each individual amounts OF that variable?

    >

    > Let's say I have 3 bullet types in the family "PlayerShots". I want each to do an individual amount of damage, but I don't want to have to make each enemy have 3 different reactions to said bullets, but instead just subtract their health by the variable in each individual bullet's damage amount.

    >

    Yes, set the variable on playershots then edit all the members of playershots individually in the editor on the object list, changing the default value of the damage variable for them. Newly spawned instances of all those objects should correctly use the same default values as other bullets of that type.

    Welp. I thought that didn't work. I recall a previous time where I tried that and the variables all remained the same for ALL objects in the family. Thread can be closed and locked, I was being silly.

  • Is there any way to make objects from families share variable types, but give them each individual amounts OF that variable?

    Let's say I have 3 bullet types in the family "PlayerShots". I want each to do an individual amount of damage, but I don't want to have to make each enemy have 3 different reactions to said bullets, but instead just subtract their health by the variable in each individual bullet's damage amount.

  • It works! Which is weird, because I swear I tried that before and it didn't work. Oh well, at least I got it up and running, so that's nice.

  • Okay, so you want the bullet to change direction towards a moving player, so it wil always hit. Kinda like a heat-seaking-bullet.

    Wel you have the bullet action 'set angle of motion'. That wil ask you for an angle.

    The needed angle you get with an expression. Assuming that the name of the bullet = "bullet' and the name of the player = "player" it is:

    angle(bullet.X,bullet.Y,player.X,player.Y)

    Just fill that in the 'set angle of motion' action.

    Basecaly you use the same tool to change angle as you use to do the motion. If you use 'rotate toward position' (by instance) you rotate the physics world, while you need to rotate things IN that physics world. You will make things go stuck by pushing them into solids, the paths will go erratic, in fact you just break the physics world.

    A little warning; if the bullets always hit, the player goes erratic too.

    Hope i helped.

    Thank you for the advice. I'm currently away at the moment, but I'll report back with results once I get the chance. Thanks!

  • Yes, it uses the Bullet behaviour. It's spawned by a boss, actually. The "other object" is the player, and it only sets its angle when it's first first.

    What I'm trying to do is make it so it moves in the dir of the player, but the sprite itself doesn't rotate. It just looks weird when it does it.

  • ...without using the "set angle" action? I want to make sure this projectile stays at the same angle, but travel in the direction of another object.

  • Put a "Foreach Springer" in front of each, so you pick each item individually. Don't separate out the "set alerted" from the frame & speed actions, do it at the same time (and possibly get rid of the alerted).

    Thank you very much! Issue solved.