GameSalad

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Armelline's Free Stuff For Everyone (check first post for the latest update!)

ArmellineArmelline Posts: 4,694Member, PRO
edited May 2015 in Community Tutorials

WARNING: LOTS OF GRAPHICS BELOW

So as I continue working through my "Tests" folder, I found a few other things that I thought would be worth taking the time to post for free. I'll eventually put together a new website and will put them there when I do, but for now I'll use this thread to compile them.

Hopefully the file hosting I'm about to use will do the trick... if not I'll find a new one.

I'll add more as I make/find them!

❝ Alphabetise a Table ❞

There are some hidden goodies in the expression editor, one of which is the ability to compare two strings and calculate which is alphabetically earlier than the other using a simple > comparison. This demo shows it in action on a table with 10 words in it. It can definitely be massively speeded up by using custom loops instead of the built in GameSalad ones, but I went for the easy option here as the looping itself isn't the focus of this demo. The table cells are spawned automatically but there's no logic to handle larger numbers of them - it wouldn't be too difficult to add, if you had some need to. (If you only have a few items to compare, use the method in my bubble sort demo - it'll be the fastest way to do it.)

https://www.copy.com/s/t:LxxDu7g3hs3RO09N;p:%2FAlphabetise.zip

.

❝ Blur ❞

This is a very small template that aimed to mimic the iOS 7 blur effect found in things like Control Centre. I seem to remember making it a lot more complicated and flexible than this one, but if I did I lost the file. It's a very, very cheesy way of achieving the effect - don't expect anything clever. Note that the image quality below does not reflect the actual effect as it's just a crappy gif.


https://www.copy.com/s/t:fzDeBRlMMVMzShqv;p:%2FBlur.zip
(Or try this alternative by @Socks: https://www.mediafire.com/?ayebrge2h3uc8ym - set opacity of the blur layer to 0.98 to still see objects behind.)

.

❝ Bubble Sort ❞

When I was working on the problem of comparing poker hands it was necessary to sort the hands before performing the comparison. I tried various methods of bubble sorting with loops, but found that for smaller numbers of items (I didn't test past 10), this was the fastest way. Since I made this I've found a way I think will speed it up even more but haven't had time to revisit it.


https://www.copy.com/s/t:S1DnF9WJSp2D7S0x;p:%2FBubble%20Sort.zip

.

❝ De-Spacer ❞

Somebody was discussing (I forget who) how to remove spaces from a string of text. Since it was such a quick and easy thing to do I whipped up this example. Don't expect fireworks, it only does one simple and boring thing.


https://www.copy.com/s/t:HgSVhAXI8NIPhKc0;p:%2FDe-Spacer.zip

.

❝ Falling Leaf ❞

A game I'm working on right now required a powerup to drift slowly down the screen, like a falling leaf. So this is... a falling leaf. You can tweak the settings to your heart's desire to get just the right float effect you need.


https://www.copy.com/s/t:PxNHzBzhitQ0UWNj;p:%2FFallingLeaf.zip

.

❝ Flood Fill ❞

This is only really a flood fill in the broadest sense, but it was interesting to make. I'm not sure how you'd really find a use for it but I could see no reason not to include it, just in case. I used a similar method to this in one of my games that I've never finished, but you'll be able to see if you search my post history. I'm too lazy to find it myself.


https://www.copy.com/s/t:LSj7GUwM2UaghMXW;p:%2FFlood.zip

.

❝ Follow Touch Path ❞

This is a super-simple way of recording the path of a touch and then having an actor retrace that path. All it does it fill a table with touch positions then play back through them. It's very quick and rough logic and will require a reasonable amount of effort to add it into your game - I just wanted to see how well GameSalad handled it. The short answer: If you touch slow, very well, if you touch fast, okay. Each dot drawn is a datapoint, so the more dots the smoother the motion. All images are free to use.

https://www.copy.com/s/t:HpOLwGGdbomsxWUk;p:%2FFollow%20Touch%20Path.zip

.

❝ High-Low Card Game ❞

In response to a request on the forums, I threw together this basic high-low card game. It should make a decent basis for a game and the placeholder graphics are free to use should you want to. (Though you don't, they're not impressive.) Cards are generated dynamically.


https://www.copy.com/s/t:EmwhYnmcS14sf23F;p:%2FHigh-Low.zip

.

❝ Jump Through ❞

Somebody asked for how to make platforms you can jump through, so I made this quick example for them. It's very basic and barebones, designed to just show how that one effect can be achieved.


https://www.copy.com/s/t:iUx6nVv6MaoaYh4C;p:%2FJumpThrough.zip

.

❝ Leaf Blower ❞

I toyed with this idea a while back but never really came up with a particularly great way to leverage it. You can blow leaves around (was originally footballs but I hate football and love trees) by touching on the screen. The leaves will turn slightly as they move, and will move slightly faster the closer they are to the source of the wind.


https://www.copy.com/s/t:qOdSbcbxzm4QwyZB;p:%2FLeaf%20Blower.zip

.

❝ Magnets ❞

@StormyStudio ran a few "1 hour game" contests a while ago. They were a lot of fun, and this was one of my entries. It's very rough and a lot of corners were cut, but hey there are only so many minutes in an hour :smiley: This was a lot more fun to make than it is to play. It's seriously frustrating.


https://www.copy.com/s/t:yhy8FruqOQgzYPI2;p:%2FMagnets.zip

.

❝ Pulsator ❞

Just a little snippet this time. A quick and easy pulsating effect. Control the amount of size change that occurs and the speed of the pulsating. Great for adding some motion to menus and game elements! (The gif isn't a perfect loop, they don't jump like that in the project.)

https://www.copy.com/s/t:G89ZyuRfKqEWW8SN;p:%2FPulsator.zip

.

❝ Radio Buttons ❞

When I first started using GameSalad, I needed to make some radio buttons. I'm ashamed to say how long it took me to figure it out (it was literally my first day though), so here's a quick example of a super-simple way of implementing some.


https://www.copy.com/s/t:Ps0CH1Qoo3iLEMe6;p:%2FRadio%20Buttons.zip

.

❝ SaveSalad - Autosave for GameSalad ❞

Over the past week, GameSalad has crashed dozens of times for me, frequently losing me work. When I get really caught up in the flow of things I sometimes forget to save, and will often hit preview only to realise GameSalad is about to crash with 10 minutes of unsaved work about to go down the drain. After re-doing the same bit of logic for the 6th or 7th time yesterday I decided enough was enough and whipped up SaveSalad.

>

SaveSalad is a little (Mac only) Applescript application that, if GameSalad is open and the frontmost window, will save your project at a set interval. If GameSalad is not the frontmost window, it will save shortly after you return to GameSalad (if the save interval has passed - otherwise at the next interval). Unfortunately you have to set the save interval every time you launch SaveSalad, but it only takes a second with some pre-set options, or the choice of entering your own save interval.

>

I've been using it myself but I haven't tested thoroughly, so please let me know any bugs via PM. It does what I needed it to do, though, so I don't plan to add any more feature or fix anything other than major bugs. You use this entirely at your own risk.

https://www.copy.com/s/t:an9AHX6WTh4bwjSw;p:%2FSaveSalad%202.0.zip

.

❝ Simple Tank ❞

Someone wanted a tank with the gun separate to the body but constrained to it. So I threw this together as a quick example of how it might be done. It was actually a pretty pleasing effect considering how simple it is. The gun will always point towards the mouse, and the body can be controlled with the directional keys.


https://www.copy.com/s/t:SvySwoWk68D4WMPG;p:%2FSimple%20Tank.zip

.

❝ Spawn Avoiding Player ❞

>

This project demonstrates two different ways of spawning while avoiding the player. One is quick and easy but has potential drawbacks, the other is a bit more complex but ultimately more flexible. You'll need to read the descriptions given to the various rules and enable or disable them as necessary. One method calculates a safe spawning position based on the position of the player, the size of the player and the size of the enemy to be spawned. The other spawns the enemy completely at random and then destroys it and spawns another if it overlaps with the player. These some super-basic enemy movement in there too if you want to spice things up a bit.

>

All graphics are taken from the public domain and are free to use. I hope you like spiders.

(The gif came out huge so I had to butcher the frame-rate, sorry it's so jerky.)
https://www.copy.com/s/t:RkuWGEDdAkPuiqBg;p:%2FSpawn%20Avoiding%20Player.zip

.

❝ Spawn on Grid ❞

There are two things going on in this one, really. One is the "creating" of a grid using attributes that are constrained to values that will fit on the screen. Make the grid cell size bigger and you can fit fewer rows on, etc. Once you've decided on the size of your grid, you can click anywhere within your grid area and an actor will be spawned in the grid position you clicked.

https://www.copy.com/s/t:u4VK13ZUZ1qTbl0b;p:%2FSpawn%20on%20Grid.zip

.

❝ Spawn Time Changer ❞

This is a very simple way to spawn objects on a timer and be able to adjust the spawn rate dynamically while maintaining a smooth and constant spawn rate. If you are spawning every 1 second and increase the spawn rate to every 0.5s, it will spawn the next actor as soon as 0.5s has passed since the previous spawn. If you adjust it upwards to 2s, it'll spawn 2s after the previous spawn. It's simple, easy to use and implement. I like this method as no timers are used. All graphics were taken from the public domain and are free to use.

https://www.copy.com/s/t:vACSq0wwxUpi0cRN;p:%2FSpawn%20Time%20Changer.gameproj.zip

.

❝ TestFlighter 3 ❞

I've just been battling with Apple's new TestFlight system, so it seemed a good time to update TestFlighter to open Application Loader rather than the TestFlight app. This is an Automator action for Mac OS X that will take any iPhone .app file you drop onto it, prepare it for upload to Apple and launch Application Loader. This saves some time when preparing files for Apple's new TestFlight system! Just stick it on your Dock and drag and drop your game onto the icon.

>

.

❝ The Swipe Factory ❞

Essentially a laboratory to experiment with swipes and found out how far a user swipes, how fast they swipe, the direction of the swipe and the real-world distance of the swipe. Lots of information, lots of options, and lots of NUMBERS.


https://www.copy.com/s/t:MalD2YzK1ZWsXsi0;p:%2FThe%20Swipe%20Factory.zip

.

❝ Timer Changes ❞

It's a common question - how do I change a timer once it's started running? There are many different ways of doing so, but this example project shows you two of them. One uses an attribute that switches on and off forcing the timer to re-check the attribute controlling it's frequency, and the other uses a method from the "Timers are for Chumps" thread that avoid the use of GameSalad's built in timers and thus sidesteps the problem of changing them.


https://www.copy.com/s/t:B6AT3HQR27mYJqne;p:%2FTimers.zip

.

❝ Typewriter Effect ❞

This is the template got me thinking about making this thread, and was one that I made when GameSalad released the new string functions, which I love. Those and being able to put functions on the left of a rule condition have really amped up the power of GameSalad, perhaps more than people appreciate. This pulls the text to be displayed from a table, as well as the character that says it. Text is wrapped dynamically (though bluntly) to avoid words jumping lines as it's typed out. The player can tap the text to skip the typing (though this isn't done dynamically - might add that later). It's much smoother than in the gif.


https://www.copy.com/s/t:4DukB9OfX6ncZDCE;p:%2FTypewriter.zip

.

❝ Voltage ❞

Another "1 hour game" competition entries. I actually really enjoyed this one. It was a fully playable (if incredibly simple) game at the end of the hour, and had passable graphics too. Maybe someone will find it interesting to poke through. Again, though, a lot of corners were cut to get it done by the 1 hour deadline. (All art except the metal effect background is free to be used too - it's just Illustrator defaults.)


https://www.copy.com/s/t:jTlj1Q68FE3U1Qjh;p:%2FVoltage.zip

.

Notice: All these demos are FREE for you to use in your projects. You MAY NOT re-host them, sell them, or use them in templates you sell. Unless otherwise stated, graphics and sounds are NOT mine and MAY NOT be used.

«1345

Comments

  • iamcarteziamcartez Houston, TexasPosts: 648Member
    edited June 2014

    Amazing! I will find some use for the Flood Fill and Jump Through!

  • SocksSocks London, UK.Posts: 12,822Member
    edited June 2014

    @Armelline‌

    Great stuff - and cheers for sharing ! :)

    . . . . . . .

    On your iOS7 blur effect do you know you can line up the two images (the tiger and the blurred tiger) by simply using a fixed position tile . . . hold on, demo time . . . back in 30 seconds . .

    . . . . . . .

    EDIT - here you go: https://www.mediafire.com/?ayebrge2h3uc8ym

  • ArmellineArmelline Posts: 4,694Member, PRO
    edited June 2014

    Thanks for the kind words everyone!

    @Socks said:
    On your iOS7 blur effect do you know you can line up the two images (the tiger and the blurred tiger) by simply using a fixed position tile . . . hold on, demo time . . . back in 30 seconds . .

    I did not :smiley: Great example, will edit it in :smiley: Your does produce a slightly different effect though - in my opinion a cleaner and more elegant one, but slightly less similar to the strong blurring used in iOS 7.

    On a side note, I see that the special characters to emphasise titles has been cracked down on today (unless you're one special person :P) Despite abusing them a lot today that's a change I'm actually quite willing to see :D (Either that or they've just stopped displaying for me today for some reason.)

  • jamie_cjamie_c ImagineLabs.rocks Posts: 5,505Member, BASIC
  • SocksSocks London, UK.Posts: 12,822Member
    edited June 2014

    @Armelline said:
    On a side note, I see that the special characters to emphasise titles has been cracked down on today (unless you're one special person :P)

    I've got photos of the GS staff that they'd rather the press didn't get, having special characters in thread titles is part of the blackmail deal.

  • ArmellineArmelline Posts: 4,694Member, PRO
    edited June 2014

    @Socks said:
    I've got photos of the GS staff that they'd rather the press didn't get, having special characters in thread titles is part of the blackmail deal.

    I wasn't counting you, yours have reverted to either nothing or to character missing symbol for me. I assumed they disabled the use of a broad sweep of unicode characters in titles. The one person I was referring to seems to have inadvertently sidestepped the issue since they used regular characters like > and * instead. (I do notice that some older threads still have stars and things, so maybe wasn't an automated process.)

  • SocksSocks London, UK.Posts: 12,822Member
    edited June 2014

    @Armelline said:
    I wasn't counting you, yours have reverted to either nothing or to character missing symbol for me . . .

    Damn! They were there when I posted the last post, two red unicode circles either side of Fast Frame Swap !

    The purge has begun !

  • SlickZeroSlickZero Houston, TexasPosts: 2,870Member, Sous Chef
    edited June 2014

    It's kinda new. No special characters in titles are part of the updated rules from GameSalad -

    3 - USE DESCRIPTIVE TITLES. - Thread titles should be clear and specific and should avoid the use of “Help!!!,” “Pleeeeease!!!, ALL CAPS, and symbols that draw attention to a title. Repeated failure to adhere to this rule may result in a warning and/or ban. If your topic is something that's directed toward someone specific within the forum, write them a private message, or go to their email or website and contact them there. Threads directed at specific users will often be closed or removed.

    I have no friends. I'm a loser that makes video games all day. Will you be my friend?

  • ArmellineArmelline Posts: 4,694Member, PRO

    @SlickZero said:
    It's kinda new. No special characters in titles are part of the updated rules from GameSalad -

    I'm assuming all moderators will be held to the same standard ;)

  • SlickZeroSlickZero Houston, TexasPosts: 2,870Member, Sous Chef

    @Armelline said:
    I'm assuming all moderators will be held to the same standard ;)

    Yes, indeed. All moderators. Except for GS staff, of course.

    I have no friends. I'm a loser that makes video games all day. Will you be my friend?

  • -Timo--Timo- Posts: 2,313Member

    very cool stuff!! very helpful :) thanks for sharing!

  • RThurmanRThurman Posts: 2,811Member, Sous Chef, PRO

    @Armelline‌ -- These are great! Thanks for sharing with the community.

  • CodeCellCodeCell Posts: 90Member

    They are great, cheers for sharing.

  • Braydon_SFXBraydon_SFX Posts: 9,079Member, Sous Chef, PRO, Bowlboy Sidekick GameSalad Employee

    Holy Guacamole! There's some great stuff here! Thanks for sharing!

    ...Is that Cumberbatch I see??

  • gamestudentgamestudent Posts: 504Member, PRO

    Very cool!

  • ArmellineArmelline Posts: 4,694Member, PRO
    edited May 2015

    ❝ The Swipe Factory ❞

    Essentially a laboratory to experiment with swipes and found out how far a user swipes, how fast they swipe, the direction of the swipe and the real-world distance of the swipe. Lots of information, lots of options, and lots of NUMBERS.


    https://www.copy.com/s/t:MalD2YzK1ZWsXsi0;p:%2FThe%20Swipe%20Factory.zip

    (If a mod could copy this into the top post (alphabetically) that would be brilliant!)

  • SlickZeroSlickZero Houston, TexasPosts: 2,870Member, Sous Chef

    There ya go.

    I have no friends. I'm a loser that makes video games all day. Will you be my friend?

  • ArmellineArmelline Posts: 4,694Member, PRO

    @SlickZero said:
    There ya go.

    Much obliged!

  • wirelesstkdwirelesstkd Posts: 75Member

    Thanks a bunch, Armerlline :) I have a question though: what's the best way to copy an actor from your template in to my game? I really want to take your falling leaf and bring it in to my game.

    I tried grouping the behaviors and bring it in, but a lot of the attributes are broken. Then I tried recreating those attributes and reassigning them based on how they work in your file, but the leaf behaves oddly (it seems to spawn off screen, and I'm not sure how it's moving around...). I think I did something wrong. But when I tried just copy and pasting the actor from one game to the next, nothing happens.

    What is the best practice in this situation?

    Thanks!

  • ArmellineArmelline Posts: 4,694Member, PRO

    @wirelesstkd said:
    Thanks a bunch, Armerlline :) I have a question though: what's the best way to copy an actor from your template in to my game? I really want to take your falling leaf and bring it in to my game.

    I tried grouping the behaviors and bring it in, but a lot of the attributes are broken. Then I tried recreating those attributes and reassigning them based on how they work in your file, but the leaf behaves oddly (it seems to spawn off screen, and I'm not sure how it's moving around...). I think I did something wrong. But when I tried just copy and pasting the actor from one game to the next, nothing happens.

    Unfortunately you can't copy and paste the actor as it uses a number of self attributes, and GameSalad is very bad at handling those when actors are copied. You'll need to re-create it yourself.

    It sounds like the problem you're having is due to the numbers that dictate the starting position of the leaf:

    Once the leaf is definitely spawning on screen, you'll be able to see just how it's behaving and that will help us narrow down what's going wrong.

    Leaf.png 791.5K
  • wirelesstkdwirelesstkd Posts: 75Member

    Okay, I'm embarrassed: I think the problem is that my game is being designed for GameSalad arcade (480X320) while the actor is created for iPad :blush:

    I'm still very new to GameSalad and this formula is kind of confusing to me... if it's not too much, could you possibly explain what I should change what values to based on the size of my game?

  • ArmellineArmelline Posts: 4,694Member, PRO

    @wirelesstkd said:
    Okay, I'm embarrassed: I think the problem is that my game is being designed for GameSalad arcade (480X320) while the actor is created for iPad :blush:

    Nothing to be embarrased about :smiley:

    I'm still very new to GameSalad and this formula is kind of confusing to me... if it's not too much, could you possibly explain what I should change what values to based on the size of my game?

    There are a few things you'll need to change:

    1. The random value given to the X position.
    2. The starting height of the Y position, as found in the self attribute.
    3. You may want to adjust the formulas to give a smaller "arc", or slower rotation. The best thing to do is to play around with them, changing values, and looking to see what effect it has.
    4. The size of the leaf. It's very big on the smaller screen, it might be worth halving its size.

    I've attached a very quick and dirtily edited version of the template, sized for arcade. I made the changes above but I'm by no means saying they're the best values to have them at :smiley:

  • wirelesstkdwirelesstkd Posts: 75Member

    Sorry it took me a while to respond... I haven't had much time to sit down in front of GS and work with it, but it seems like this will work for me :) Thanks so much for taking the time to rework the template for me!

  • ArmellineArmelline Posts: 4,694Member, PRO

    @wirelesstkd said:
    Sorry it took me a while to respond... I haven't had much time to sit down in front of GS and work with it, but it seems like this will work for me :) Thanks so much for taking the time to rework the template for me!

    Any time! Shoot me a PM if you have any problems.

  • ArmellineArmelline Posts: 4,694Member, PRO
    edited May 2015

    Having reached a compromise with the forum staff, I'm very pleased to say I'm going to return to posting little bits and bobs in this thread! Latest is a High-Low card game demo I put together for someone on these forums a few weeks back, but I've got plenty more stored up since my last post!

    ❝ High-Low Card Game ❞

    In response to a request on the forums, I threw together this basic high-low card game. It should make a decent basis for a game and the placeholder graphics are free to use should you want to. (Though you don't, they're not impressive.) Cards are generated dynamically.

    https://www.copy.com/s/t:EmwhYnmcS14sf23F;p:%2FHigh-Low.zip

    If a mod could copy this into the first post of this thread, and stick the image code below at the top of the first post of the thread, I'd be very much obliged!

    ![](http://armelline.com/Free-Update.png) "")

  • beefy_clyrobeefy_clyro Posts: 5,390Member

    Excellent, pleased to see it!

  • RThurmanRThurman Posts: 2,811Member, Sous Chef, PRO

    Glad to see you posting these excellent demos again!

  • Braydon_SFXBraydon_SFX Posts: 9,079Member, Sous Chef, PRO, Bowlboy Sidekick GameSalad Employee

    Great to see you back at it, @Armelline‌ !

«1345
Sign In or Register to comment.