• Globally Accessible Array: HOW?

    14
    0 Votes
    14 Posts
    542 Views
    D
    @Aidan-Oxley Cheers. I'll have a puzzle around in a bit... still fighting with backups and corruption of my "elegant" little factory.
  • How to spawn a buddy?

    39
    0 Votes
    39 Posts
    8k Views
    HamedH
    How I usually handle initialization is by creating a receive message behavior and call it initialize. And every time you spawn an object, broadcast initialize. Then on the initialize, get a value from a global count somewhere on your scene like an object on global ui that has an attribute like count. Then set the spawned objects “id” attribute to that count. Then increment that count. Now, the spawned object has an id that you can use before the next time step!
  • Does a Loop of type Conditional respect Wait?

    7
    0 Votes
    7 Posts
    604 Views
    D
    @iTap-Development said in Does a Loop of type Conditional respect Wait?: you seem to like to over complicate things! Believe it or not, the process I'm talking about is that of reducing complexity in the communication of capability and capacity. The larger the audience the more effort must go into the process of making something appealing, generally applicable, insightful, comprehensive and understandable. Most successful creative software puts enormous emphasis on this channel of empowerment and engagement with their audiences. Take a look at Codea's documentation on your iPad, for an example of an exemplary effort. That's just a tiny team of guys that made that, and articulated it in that way. Why? Because they realise the empowerment of their users is the most important thing they can provide within their product. Similarly, the big companies (think Autodesk as an example) expend incredible effort making their most complex features comprehendible and enjoyable.
  • Where does a Loop exit when done?

    12
    0 Votes
    12 Posts
    668 Views
    MurtazaM
    As jack says it will trigger the next child of the parent behaviour. This is by design, since it's how every other behaviour works. They trigger in order of left to right.
  • Spawn a label with a specific Value

    12
    1 Votes
    12 Posts
    557 Views
    Aidan_FireA
    @Deeeds NP :)
  • Round a number to two decimal places: HOW?

    16
    0 Votes
    16 Posts
    491 Views
    Aidan_FireA
    @Deeeds Ohhh I see. So being able to change space between letters in a label. Not a bad idea.
  • JSON vs Behaviour Array "types"

    12
    -1 Votes
    12 Posts
    651 Views
    D
    @Jack8680 I've just tested this, and it doesn't behave the way I'd expect. Array Type = Value Selected myArray (named LapTimes) Modification is Append Value to Append is a laptime Do this, and there is never anything added to the array, despite everything else working correctly. I would expect this adds a value to the array, and extends the length of the array in doing so. Array Type is one that stores values, I've picked the right one, I've chosen to modify it by appending a value and selected a valid value Now, here's the weird part... what does work as I'd expect the above to work is this: Array Type = Behaviour Selected myLapTimes Array Modification is Append Value Value is a lap time Why? WTF? Am I completely misunderstanding what an array of type Values is? Am I misunderstanding what "type" means in this context? EDIT: And what exactly is array of type JSON? Why is this responding like a normal array of values if it's of type JSON?
  • What happens if I cancel?

    7
    0 Votes
    7 Posts
    755 Views
    ThisT
    @Murtaza Great! Thanks!
  • Can I "Get" an object for Actions?

    2
    0 Votes
    2 Posts
    178 Views
    Jack de WildeJ
    @Deeeds you'd have to put the behaviours in each object with some ifs. That's what my suggestion the other day was partly about; a way to reference objects by name in behaviours.
  • Need help with shooting and monsters killing you.

    41
    0 Votes
    41 Posts
    11k Views
    D
    @Murtaza Argh. Got it... Achievement unlocked: [image: 3e6e9236-0813-49e0-a3bd-13ac35fb5b6e.jpg]
  • String and Rope Joints: Any experience with these?

    1
    0 Votes
    1 Posts
    115 Views
    No one has replied
  • Is there a way to get the length of an array?

    11
    0 Votes
    11 Posts
    495 Views
    Jack de WildeJ
    @Deeeds idCount = 0 First object spawns First object sets its ID to idCount (ID=0) First object increments idCount to 1 Second object spawns Second object sets its ID to idCount (ID=1) Second object increments idCount to 2 Etc.
  • Can I pass an Array between Scenes?

    3
    0 Votes
    3 Posts
    171 Views
    Jack de WildeJ
    @Deeeds you can also use save value to save the array in one scene and load it in another.
  • Loop -> Repeat: HOW TO?

    8
    0 Votes
    8 Posts
    445 Views
    HamedH
    You could do it with @Jack8680's way, Or you could connect your bottom behaviour to the place where you want it to repeat. Eg. Behavour Bundle -> Set Colour - > Set Colour 2 -> Connect it back to Set Colour
  • Best way to set up behaviors?

    10
    1 Votes
    10 Posts
    497 Views
    iTap DevelopmentI
    @Murtaza or @Hamed what way would you recommend?
  • Anchor point

    28
    0 Votes
    28 Posts
    3k Views
    Aidan_FireA
    @iTap-Development I don’t remember lol. There is a reason though. It’s probably one of those formulas like hypotenuse = sin(θ) × opposite.
  • Aspect Ratio: Can Zoom be changed for iPhone?

    8
    0 Votes
    8 Posts
    419 Views
    D
    @Murtaza btw, I got this working. For me, using a 2 metre top and bottom gutter on the iPad, 88% zoom is ideal on the 16:9 phones.
  • Request for Developer name change

    4
    0 Votes
    4 Posts
    390 Views
    MurtazaM
    @Evolution You'll get a response within 24 hr. Behind the scenes it uses email, so you will receive a response to the email account you used to register your hyperPad account.
  • Issues With Developer

    3
    0 Votes
    3 Posts
    215 Views
    Michael KhalfinG
    @Murtaza I submitted an email; developers get 24 hour replies, but the system thought I was an enthusiast, so please take that into consideration.
  • Hexagon Collison: Which side?

    3
    0 Votes
    3 Posts
    224 Views
    iTap DevelopmentI
    @Deeeds well the collision behavior only has up down left right, so you would probably have to build yourself. You could use the collision point and the object position and find the angle between the two points to find the side. Shouldn’t be too hard.