PixelRebirth's Recent Forum Activity

  • So it's what you're looking for, yay!

    Basically Sprite.Left would be the X coordinate of the left edge of the object, Sprite.Right the X coordinate of the right edge obviously.

  • This may be what you're looking for, hopefully:

    http://upload.namelezz.net/downloader.php?file=3828287_perfectstop_002.cap

  • Okay is this supposed to become a physics game/tryout or something? Since the player has physics behavior, but you set its position with events. You don't want to do that if that's the case. Add force/velocity with events and stuff. And other things it collides with need to have physics behavior as well.

    Or is it just accidently in there and you absolutely want to move your sprite with events? Sprite.X + Value*TimeDelta Style?

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Say I have A BOX moving along the X AXIS and it COLLIDES with another BOX so I want it to stop moving.

    You never actually stated which method you are using to move your sprite. And I still don't really get the problem tbh.

    If your using a movement behavior, you would just set the speed to 0 on collision or when overlapping.

    On collision between Sprite A and Sprite B

    Sprite A Set speed to 0

    Of course if your sprites are instances of the same object and picking is your problem, you'll need to add 2 different families to the object and check for collision between family A and family B instead.

    If it's still not what you're actually asking I suggest you throw in a cap.

  • I have placed two 64x64 boxes at each side of the level to stop the object from going beyond a certain point (most importantly the edge of the level).

    What Davio said. You don't need objects, just set the position it shouldn't travel beyond.

    Something like this: http://dl.getdropbox.com/u/2306601/StopRightNow_001z.cap

  • I had this stupid idea in the back of my head for a while. And when I read about the TDC Halloween Compo this year, I took the opportunity to finally start doing something about it.

    <img src="http://dl.getdropbox.com/u/2306601/slashshot1.png">

    So you're Slasher Boy, you jump around and slash enemies. It's your basic platformer with a horror theme and the occassional boss fight. I didn't get too much done in the one month's time of the competition (and normally wouldn't release something this unpolished publicly [well, anymore haha]), but at least it's playable and yes, there's a boss to fight indeed.

    I won't go too much in detail about story and controls here, you can see that stuff on the TDC site:

    http://create-games.com/download.asp?id=7969

    and the download link is there too. Maybe somebody wants to vote for me, LOL

    VERSION OUTDATED - CLICK HERE FOR CURRENT VERSION INFO AND DOWNLOAD

    I'd like to get some feedback in this thread about bugs and glitches and anything else too of course. There is always the chance that I'll continue this project. Updated versions would also be available here.

    Known bugs/glitches:

    * Animations might get stuck for a short time in the boss stage, has to do with the way I handled vertical platforms. It's minor really, still I should come around to fix it soon.

    * Weird score glitch in the harvester stage. Sometimes when you die, there will be no more score added for killing enemies or the score won't be shown at all. I just realized this shortly after uploading the game, might have something to do with event sheets I forgot to include.

    * Pretty important: I made a mistake setting up the harvester stage. So if you're on a CRT monitor with refresh rates of 85hz or even higher, the stage will become unbeatable. Don't go higher than 70hz. Obviously you'll have no problem using a typical TFT/LCD screen.

    * Hit a flying ghost, then purposely overlap it while it is flashing. You shall now be immune to attacks from that creature until you leave the collision. (thx to ShadeKirby500 for noticing!)

    So if you find anything else, be sure to let me know.

    Also I can't help myself but mention that I'm looking for an individual who would be willing to do 2 or 3 retro and horror style music tracks for the game. Apparently all that's in it for you is being credited in the game, but maybe someone has a heart...

    I realize this demo is horribly stitched together, but maybe you'll be able to yank some fun out of it.

  • Oh in that case you should try to figure something out. There is still the Wrap behavior, which I failed to use properly in a scrolling game. But maybe somebody else has more experience with it.

    I have objects in the environment as well, though. This seems really messy... ehhh

    What do you mean you have objects in the environment? Are we talking about some sort of seamless scrolling background? Your objects (enemies, powerups) or whatever would be seperate objects so I don't really get what's the problem with that.

    You really should try to prototype this. In most cases it can be done in Construct.

  • Well, we are all talking theory here. If you cared to share a cap, things could get much more specific.

  • Use a Tiled Background object for your environment (if it's static), then you could just change the image offset with events accordingly. I have done it before and it works like a charm.

  • can you set the sprite to check "overlaps at offset y+1 with vertical platform object", then deactivate gravity and directly set y to be the platform's y-height? Then just reactivate gravity when you jump. Don't have construct here, so can't confirm.

    I tried an idea like that once too GMG, but it appeared to become very glitchy. So i can't really recommend something like that.

    I have a little suggestion for you though: Deactivate the 'Center view on me' attribute of the player sprite. Instead put in the existing always event in the layout 2 sheet the following action:

    System: Scroll to object player

    This way it appears to work much better with the vibrating issues regarding the horizontal platform. It doesn't fix the issue with the vertical platform though. I just thought I'd mention it, also it's always a good idea to use events only for scrolling and never the 'Center view on me' attribute. In my opinion at least.

    What I did in my project with vertical platform was, that I always added the difference of the Y position between ticks to the Y position of the player sprite, so it moved smoothly along with it instead of falling. That's how I'd roughly describe the method at least.

  • This is probably because of a bug I already posted on the tracker (here).

    For one of my games I have some kind of workaround, which works best with vertical platforms, not so much with horizontal I'm afraid. Still it's better than the constant vibrating. Since it's tailored for my own scrolling system, it's kind of hard to give you actual events for the mentioned workaround. If you want some pointers though, feel free to contact me via PM.

    There's a good chance this might get fixed in the upcoming release, so keep your fingers crossed.

  • Germany...

    PixelRebirth - Germany

PixelRebirth's avatar

PixelRebirth

Member since 26 Mar, 2008

Twitter
PixelRebirth has 1 followers

Trophy Case

  • 16-Year Club
  • Entrepreneur Sold something in the asset store
  • Forum Contributor Made 100 posts in the forums
  • Forum Patron Made 500 posts in the forums
  • Forum Hero Made 1,000 posts in the forums
  • Coach One of your tutorials has over 1,000 readers
  • RTFM Read the fabulous manual
  • Email Verified

Progress

23/44
How to earn trophies