RamPackWobble's Recent Forum Activity

  • not too sure about the title - amused me when I thought of it but now I'm not too sure...

    Been playing around with line of sight and trying (unsuccessfully) to get multiple instances of the same sprite to be able to see if they can see the other copies of themselves, see ?

    I've come up with one way which works but I've done it by pinning a line of sight sprite (eyes) to each of my copies and using these "eyes" to see the other copies. What I wanted to do was use the "line of site" behaviour directly on my copies.

    This is all RapidTom s fault - he started me off with his question

    Here's hoping that someone can come up with a more elegant solution

    <img src="smileys/smiley9.gif" border="0" align="middle"> almost forgot the capx <img src="smileys/smiley9.gif" border="0" align="middle">

    and a screen grab.

    <img src="https://dl.dropboxusercontent.com/u/143636437/examples%20for%20web/Ashampoo_Snap_2014.01.09_12h32m25s_001.png" border="0">

  • use the sine behaviour with a very low magnitude (1 or 2 ?) and period (0.1 ?)then alter the wave shape to triangle. Activate sine on keypress else deactivate.

    edit - just thought, the object could be slightly off from it's start point using this method (depending when you deactivate the sine) so you might need to store it's x,y and restore them after.

  • I thought you wanted to just stop it going negative - anyway look at "lerp" as I think this is what you are after.

    another go

    basically this now takes 5% (look at global variable "gvPercentageToTakeFromReserve) of your remaining "Health left in bottle" (heal) and adds it to your hit points (Hp)

    This does allow hit points to go over max hit points but then corrects in line 5 but you have still drank 5% of your remaining potion.

    Another (better ?) way would be to say the bottle holds 10 gulps of potion and each gulp would heal half way between your health now and max health...

    so that would become something like

    if (gulps left in bottle) > 0

    (my health)=(my Health)+lerp ((my health),(max Health),50)

    reduce (gulps left in bottle) by 1

    start some timer to allow time for potion to work

    Good luck

  • delgado Did you get any further with this ?

  • is this what you are after ?

    capx

  • Thank you.

  • He ( mindfaQ ) has a good point - possibly worth it in the long run to convert your routines over to 2d. Certainly worth looking at in any future   versions.

  • I think the problem with setting the rotation to off is that there is zero leeway - the target has to be exactly lined up !

    You could (and I am not sure if this is a good idea) limit the amount of rotation to just a few degrees - by forcing the turret to turn back to stay inside limits.

    Here is the turret demo hacked around a little. Hopefully in a future update there could be a little more flexibility in the (fixed rotation ) aiming ?

    Turret Hack

  • Here is another way based on a method by ramones

    It uses the tiled background - which would allow you to use different shapes with no masking so your liquid / test-tube can be seen through. A clever idea that I wish I had thought of.

    Ramones example can be found here

    My example here

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • More time than I thought !

    sort array mk 2

  • Mentioning the cricket ? <img src="smileys/smiley19.gif" border="0" align="middle"> Are you sure you want my help ? <img src="smileys/smiley17.gif" border="0" align="middle">   

    I forgot to allow for it not starting at (almost) ground level.

    Change

    (((LayoutHeight-gvScrollersStartingHeight)-Scroller.Y)/(LayoutHeight-gvMaxHeight))

    to

    (((LayoutHeight-gvScrollersStartingHeight)-Scroller.Y)/(LayoutHeight-gvMaxHeight-gvScrollersStartingHeight))

    this will use the (hopefully) correct (distance travelled)/(distance to travel) rather than what is was doing now I've typed that it doesn't look right...I will look again later when I've got more time

    and don't forget to set gvScrollerStartingHeight to the correct position .

    Perfection ?

    (In this version the gvScrollersStartingHeight is only set after a reset...also not a good idea to have it running the calculation every tick (maybe find a way to do this only during flight?))

  • sorry - I missed the replies.

    you don't need to loose the names - I will try to give you an example but it won't be for 24 hours at best.

RamPackWobble's avatar

RamPackWobble

Member since 2 Feb, 2013

None one is following RamPackWobble yet!

Trophy Case

  • 11-Year Club
  • x4
    Coach One of your tutorials has over 1,000 readers

Progress

12/44
How to earn trophies