RockmanZero's Recent Forum Activity

  • Wow thanks again podpathos, that works perfectly and I learned how useful the new offset collision can be used.

  • Ah sorry, I was experimenting with the extensions, but they are not actually used in the project itself yet. I have now removed the behaviors from the capx but if you still need them I have included them in a zip file.

    dl.dropbox.com/u/57137706/behaviors.zip

    dl.dropbox.com/u/57137706/towerplace1.capx

  • <img src="http://dl.dropbox.com/u/57137706/final.png" border="0">

    Link here for pic

    This is quite hard to explain so I have created a picture. Not sure if it will show up though since my preview button don't seem to work correctly. Keeps saying "there is nothing to preview".

    Anyway can someone please help me on the following problems, Firstly on how to detect part of another object but at the same time not detect the whole thing. I just need to detect the edge of the wall. This is for the framework which I'm working on. To use click on the top right icon and a menu will appear then click on 1 and then the icon and the green square will become a tower. The towers can be rotated with the z key. Drag the tower to the wall and release to place tower there. This type of tower can only fire in 1 direction and can be only be placed next to a wall.

    The current solution in the capx is the closest I have gotten, but its not what I need. The current solution works by dragging the icon into the wall then the tower appearing 1 square at the angle it is facing.

    The base object stops certain problems too. This solution also still doesn't solve the problem of the towers appearing in the wall itself, not to mention the other problem is that it allows duplicates, Even if the tower exists it creates another one on the same spot.

    Here the list of things I need it to do.

    1. Detect the edge of a wall so that a tower can be placed there.

    (top right picture)

    2. Not detect the actual wall itself, no towers should be allowed to be placed there.

    3. Not allowed to place towers in white squares. (where not next to a wall)

    4. Not allow duplication if a tower already exists.

    Phew, I think that is everything and I hope I have explained it well enough.

    Here is the Capx Link

    dl.dropbox.com/u/57137706/towerplace.capx

    Here is the pic if it don't display.

    dl.dropbox.com/u/57137706/final.png

    Thanks for your time everyone.

    Kind Regards

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Wouldn't a variable work?

    Set a variable on player object as 1, then only add the score if variable = 1. When the player gets hit by an object set variable to 0 and finally reset variable back to 1 if you need it.

  • Many thanks Podpathos, can't believe it was so simple, seems I was going about it the wrong way with groups and the between angles event.

  • Oh I forgot one other thing a save/load system.

  • Improvements to behaviors would also be nice such as allowing down jump on the jump-thru. Relying on workarounds usually involve it being a little bit buggy. An example I remember is if you have a sprite on a platform which moves downwards.

  • Can someone help me modify Rojo example so that the arc does not go over angle 270-90 (half a circle basically). I've been trying to do it by trial and error but its just not working out. I would like it so that the turret will only fire and detect within angles 270-90, if another player instance is in angles 91-269 it will ignore it. I've also tried the turret behavior but it doesn't seem to work when you enter in 180 into the arc field, so I need to do this manually using events.

    Thanks

  • I called them sprites but they are tiled backgrounds. 30*30 pixels of one colour, but when there a slope I want to use a bigger version of it to quickly cover the area up. GenkiGenga if you don't use snap to grid it must take forever to align everything perfectly. With the snap option I can quickly place the tiles.

    Thanks Yann that works. I didn't realize that it was the image origin point that was causing it.

  • Does anyone else have this problem, sometimes when resizing images its off by half a pixel. The only way to fix it is to disable snap to grid and set it manually. This also sometimes happen when placing sprites next to each other. Is there anyway to make it so that its always aligned? Even setting snap to grid to 1 doesn't work.

  • No probs, you've been a great help smitchell

    Many thanks

  • It doesn't seem to work because even if you do set the player to be the same angle as the slope, when the slope moves down the player object is still a nano second behind so it bounces. Basically the player object is always one pixel behind the moving platform when it moves down. I think what needs to happen is both the player object and the moving platform positions need to be moved together at the same time when the moving platform moves downwards.

RockmanZero's avatar

RockmanZero

Member since 13 Jan, 2012

None one is following RockmanZero yet!

Trophy Case

  • 12-Year Club
  • Email Verified

Progress

13/44
How to earn trophies