RamPackWobble's Forum Posts

  • you can convert text to a number :

    number=int("10")

    you can also do thing like

    text=""&10

    so you could return your value as a number and then set your text to

    text=""&(returned variable)

  • I cant see your image all I get is

    "

    Google Drive

    You need permission

    Want in? Ask the owner for access, or switch to an account with permission. Learn more

    "

  • I am guessing that your bullets are not yet moving when you are setting the angle of motion ? If they have zero motion (velocity) then they cannot have an angle of motion. This was the explanation I got

    "The bullet's angle of motion is based on it's x and y velocity. If a bullet isn't moving then what is it's angle of motion? Think about it.

    And you have the bullet property 'set angle' = 'yes' - "Set the objects angle to the angle of motion".

    So when the bullet isn't moving, it's angle of motion = 0 and it's angle gets set to 0."

    This lesson was provided by ramones ...

    "But now I am the master!" (but only a master of evil ?) mmmmmwwwwahahahahahaha

    (Sorry, it's early and I am still on my first coffee and have not had my anti-silly pills yet)

  • don't think you can with particles - I think your only option is sprites (I hope I am wrong)

  • if you edit the capx to the above - when run all spOrange will be created with ivHealth = 150 (which is the family (famThings) instance variable). spBlue will be created with ivhealth of 50 and spGreen with ivHealth of 100 - these figures were set by selecting (in the projects list)each of the spOrange, spBlue and spGreen in turn and the setting (in the properties list) the ivHealth value I wanted for each sprite . You can overrule these set values in the code but do not need to.

  • code is a mess but have a quick look at

    https://dl.dropboxusercontent.com/u/143 ... index.html

    you can move the points around, add and delete points. points can also move together (eg scroll down screen or rotate)

    is this something you would be interested in ?

    no plugins just c2

    edit my special offer from dropbox has come to an end - I will need to reorganise my links and repost when I get organised

  • just to stress the point you can still access the instance variable created for the family from the sprite. so from above you can still access red.maxhealth. so sprite.health is linked to family.health...

  • here you go - a quick example...

    https://db.tt/E7yuO7s6 (r212.2)

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • say you have 5 sprites called red,blue,green,orange and yellow

    you add all 5 to a family "boxes"

    then to the family you add instance variables maxhealth and health

    now each of the sprites have now also got instance variables maxhealth and health

    so at start of layer you can say

    red.maxhealth=100

    blue.maxhealth=1000

    green.maxhealth=500

    etc

    but you can then say

    when members of boxes hit

    boxes.maxhealth =boxes.maxhealth-damage

    so if the area of damage hist a red, and green sprite then their and only their health will drop

  • give the family the required instance variable not the objects inside.

    as it sounds like you have given the variables to the objects rather than to the family have a look at

    https://www.scirra.com/tutorials/535/ho ... o-a-family

  • might help, or at least give you another idea.

    https://db.tt/lMIxlRMH

    edit (9am sat) - I've just had an epiphany - "I'll be back !"

    edit my special offer from dropbox has come to an end - I will need to reorganise my links and repost when I get organised

  • doubt it - I still think it is down to the shape/size of your hitbox (as mentioned by midward ) and the position of the origins of the two sprites and the fact that "Y" goes from top to bottom so to check if falling onto spikes you will need to check

    if player.y < spikes.y then...

    (ie players y position is less than the spikes which makes the player above the spikes)

    If you post your capx then we can have a look.

  • can you not just say something like :

    if touch.x < (screenwidth/2) then player is touching the left hand side of the screen ?

  • r178 - thats about a year old ? I can't say I have noticed problems with the node webkit. Anyway....

    How to open newer versions of capx files

    unzip the capx and edit the caproj file in a text editor

    find where is says (for example)

    <saved-with-version>21100</saved-with-version>

    and replace with an older number eg

    <saved-with-version>17000</saved-with-version>

    save and try

    Search the forum for more information about opening newer versions in old versions.

    (post above updated)