-Silver-'s Forum Posts

  • Sorry Raiper341, I'm not sure what you're trying to do.

    Do you mean you want to know how to make the screen follow the player as he moves along the level? Or do you mean you want the screen to shake when the player is hit by an enemy or collides with an object? Or something else entirely?

  • Still, that bug could turn out to be a really cool feature when making rocket elevators/teleport lifts in games, just move the block the player stands on and they go with it!

    This is true! Thanks for your help with the other issues. Guess this one is just going to take more experimentation than usual before I get it working well.

    Sounds like Ramosalvaro knows the answer! <img src="smileys/smiley4.gif" border="0" align="middle" />

    But he only speaks Caps Lock Spanish <img src="smileys/smiley19.gif" border="0" align="middle" />

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Haha! Oh man...

    So I've checked the unbounded scrolling box, and used an invisible wall to stop the player getting in view of the black edges. Pretty much exactly the same solution I already had: starting the player roughly 1000 pixels into the level and using an invisible wall. But I may as well tick the unbounded option too in case someone with an insane screen resolution plays. Better to see a black edge than have snapping backgrounds.

    I've also had to bite the bullet and just learn through trial and error where the backgrounds need to be placed on the Y axis when using varying Y scroll speeds. Took a while, but it's all working well on various resolutions now (from 1280x720, right up to 1920x1080), so yay!

    The crazy issue now is the bonus question(!) I asked about. Thanks to JayJay I got the Obstacle boxes to vanish and appear at will. But his guess about the issues that would lead to were a little off:

    "Have to make sure the player doesn't stop sprinting in the middle of one though I guess."

    Stopping in the middle turns out to be fine. The player just gets moved up a bit as the object appears from beneath him. Nothing catastrophic there. But... Pressing the shift button to start sprinting while already on top of an obstacle (such as a big tree root) not only teleports the obstacle box off the screen, but also takes the player along for the ride <img src="smileys/smiley17.gif" border="0" align="middle" />

    Time for some coffee. My brain hates problem solving without a caffeine injection.

  • They are looping images, yes. I have four large images with transparency (png files) each on their own layer. I then have each layer set to scroll 10% slower than the layer in front. So the first background layer scrolls at 90% speed, the second at 80%, etc.

    You can only see the first two layers of the background in the video. The third and fourth are of the tree tops leading into the distance, viewable when the player reaches higher sections of the level. I then want a FIFTH layer showing mountains in the really far distance.

    They're large images (each 2048 pixels wide, and either 1024 or 2048 high) so I might have to cut back on the ambition in order to save VRAM. I'm testing it on three different systems, and so far getting smooth gameplay on all three. It's early days though, and I've obviously got a heck of a lot more to add before it's anything like a playable game.

  • I've made a quick video to show the problem,

    I'm starting to throw things together to see what works. It's all work in progress of course, animations, sprites, textures, blah blah blah the usual "please don't crucify my artwork just yet" comments <img src="smileys/smiley17.gif" border="0" align="middle">

    I have two issues with the scrolling background at the moment. The first is that it always seems to 'snap' to the edge of the screen, and 'snap' out again when I move away from the edge. I could always have the player's starting position sufficiently into the level so that the edge of the screen is never encountered, but I would rather figure out what's causing the issue and learn how to avoid it in the future.

    Secondly, the Y axis looks a little funky. I think it's because all the layers are set to 100% Y scroll speed, so my eye is telling me that it looks odd since they all move up or down at the same speed - whereas they should be slightly offset. However, changing the Y axis scroll speed led to my background appearing at odd locations (I could just about see the tops of the trees. The rest of the background was buried below the player's position).

    Any advice on how to deal with Parallax backgrounds? The only tutorials I could find were for C2.

    Bonus Question: Those tree roots my wolf runs right over? I want them to have collision detection. Easy enough - I've created small invisible boxes with the 'solid' attribute, the standard approach in CC platformers. But what I also want to do is have a sprint ability where holding down Left Shift makes the wolf run faster and ignore small obstacles like the tree roots, running right over them unhindered. I looked for a way to disable the solid attribute through events, but couldn't see the option. Eg:

    Left Shift button is down --> Obstacle: Disable Solid Attribute

    Left Shift button is released --> Obstacle: Enable Solid Attribute

    Is there any way to achieve this?

    Many thanks for reading, and for any advice you can provide <img src="smileys/smiley12.gif" border="0" align="middle">

  • Glad you got it fixed <img src="smileys/smiley1.gif" border="0" align="middle" />

  • I have the GTX560 ti and don't have any issues with the latest Construct Classic build (latest drivers too). Definitely not the card unless your drivers are out of date.

  • Yep, like we said, you can't just import a gif file. You first have to find a program that can separate all the gif files into individual frames, and THEN import those frames.

    For example, I have this gif image that I created:

    <img src="http://i216.photobucket.com/albums/cc212/darkstorne/Wolf-GIF-1.gif" border="0" />

    Since I put that gif image together, I have all the individual frames saved as png files, and it's those png files that I import as my animation.

    If it's your own animation, that you created, then you should already have all the individual frames you need. If you just stole someone else's gif and want to use it in your game... moral issues aside (and legal, if you plan to make money from this) you'll need to find a way to cut the gif up into individual jpg or png frames first. I have no idea what program can do that, but I'm sure there are free ones out there if you use Google.

  • Great find, thanks Funky.

  • Man, what a ball-ache.

    Okay here's what I've come up with after tweaking things a bit with simplicity in mind: http://dl.dropbox.com/u/31971596/Anim%20Tweaks.cap

    This still has issues. The animation is set to NOT loop, so looks odd when you keep the X button held down while moving. It's like he slides along the ground. I'm still a complete noobie to Construct so I don't have the answers.

    What I would do in this situation, is create a different attack anim for running, that merges the arm thrust with the basic leg movement of the run anim, and then also includes the basic run animation afterwards as a part of the attack animation. I would set the animation to repeat, but from the frame number where the basic run anim beguns. It would then appear to show the character doing his attack, and then continuing to run until the X button is pressed again to initiate another attack.

    Hope that makes sense ._.

    I'm sure there's a better way of doing this, but I'm just as confused by Construct as you are <img src="smileys/smiley17.gif" border="0" align="middle"> That's why I love the community though. Most of the time people jump at the chance to help!

  • I feel your pain. I'm having a lot of issues with animations playing at the same time / being prioritized in the wrong order too. My last animation issue was solved by simply going to bed after an hour of failed attempts, and trying again in the morning with a clear mind. It's surprisingly effective!

    Would you be able to take a screenshot of your current animation events list? That way I might be able to give some more detailed feedback, and I'm sure some more experienced CC users will be able to as well <img src="smileys/smiley1.gif" border="0" align="middle" />

  • Did you make the gif yourself? Or did you just grab it from the interwebs?

    If you made it yourself then you'll already have all the individual frames you need to import. If it's someone else's creation that you're using, then you'll need to find a program that can separate the gif in to individual frames first, and then import then.

    Long story short, use your own resources to avoid complications.

  • Yeah, sorry. I was assuming you had made the gif, and so already had the individual frames.

  • Yup! Right click in the Animations section (where your gif frames are going to go) and select 'Import'. Browse to your gif images, select all the frames you want to import, and click ok. Much faster than one-by-one <img src="smileys/smiley1.gif" border="0" align="middle" />

  • Is it possible to have a sprite's base follow the angle of the platform it's on?

    I'm using a wolf as the main character (so quite a long sprite) and it looks odd when he's on a sloping platform but standing as though he's on a flat surface. I'd like him to follow the angle of the ground he's running on.

    Image of what I'm after, in case the description is confusing:

    <img src="http://unlimitedlivesblog.files.wordpress.com/2010/07/sonic_screen_1.jpg" border="0" />