Spare Code ? Dump It here.

12123252627

Comments

  • SocksSocks London, UK.Member Posts: 12,822

    @tatiang said:
    Select touch controlled actor

    Nice ! :smile:

  • PhilipCCPhilipCC Encounter Bay, South AustraliaMember Posts: 1,390

    @tatiang said:
    Select touch controlled actor

    Neat...

    Note: made with Mac Creator 12.20

    ... and I especially like this aspect.

  • tatiangtatiang Member, Sous Chef, PRO, Senior Sous-Chef Posts: 11,949

    Thanks, guys. Someone asked how to do it so I obliged. And as for working in 12.20, it was an absolute pleasure.

  • LovejoyLovejoy Member Posts: 2,078

    Reverting to 12.20 was like a breath of fresh air.

  • Chr0nosChr0nos Wondering Vagabond AustraliaMember Posts: 113

    Wow, as a n00bie, this thread is a-mazing! Thank you to everyone that contributes!

  • tatiangtatiang Member, Sous Chef, PRO, Senior Sous-Chef Posts: 11,949
    edited March 2015

    Count Rotations

    This was asked for here.

    I'm sure it could be improved upon but for now it uses a range of mod(self.Rotation,360) values to determine when an actor has rotated a full 360°.

    Note: made with Mac Creator 13.7

  • ETGgamesETGgames Member, PRO Posts: 190

    A game I started then just gave up....but some really useful code. Get a line to spawn through two touches. Obviously you can make the change attribute behaviours into constrain, and you can easily constrain the length to the line to the distance between the two touches.

  • AlchimiaStudiosAlchimiaStudios Member Posts: 1,069

    Here is a demo on the use of magnitude. It might help some visualize what magnitude is actually doing, and how it can be used.

    Also contains a few variations I don't see commonly used on GS forums for creating oblong, skewed, and non omni-directional magnitude radiuses.

    Sorry if it doesn't all make sense, I'm not the best at explaining things. =)

    Just start on the first scene and use the double arrows to continue.

  • ETGgamesETGgames Member, PRO Posts: 190

    Pretty cool effect - based off of orbz's drawing template

  • tatiangtatiang Member, Sous Chef, PRO, Senior Sous-Chef Posts: 11,949
    edited April 2015

    Maintain spawned actor distances while increasing speed

    Video here

    I'm sure this can be improved upon but here's my solution to the question proposed at http://forums.gamesalad.com/discussion/85549/trying-to-figure-out-some-math/p1.

    Note: made with Mac Creator 13.7

  • karuzokaruzo Member Posts: 35

    @tatiang said:
    Maintain spawned actor distances while increasing speed

    Video here

    I'm sure this can be improved upon but here's my solution to the question proposed at http://forums.gamesalad.com/discussion/85549/trying-to-figure-out-some-math/p1.

    Note: made with Mac Creator 13.7

    Thanks. I think that's solved it. I'll try and let you know. Thanks.

  • tatiangtatiang Member, Sous Chef, PRO, Senior Sous-Chef Posts: 11,949
  • RowdyPantsRowdyPants Member Posts: 465

    You guys are incredible! Thanks very very much for sharing this wealth of knowledge!

  • LovejoyLovejoy Member Posts: 2,078

    @Thunder_Child Could of just asked for help putting in custom fonts, i would of happily done it for you. My Skype and PM is filled with members who ask for help on the daily.

  • tatiangtatiang Member, Sous Chef, PRO, Senior Sous-Chef Posts: 11,949
    edited April 2015

    Snake Game Demo

    See http://forums.gamesalad.com/discussion/85868/how-do-i-make-a-non-stop-actor-like-worm-in-the-worm-game/p1

    Arrow keys to move. Does not include a lose condition (e.g. head collides with body).

    Note: Made with Mac Creator 13.7

  • SummationSummation Member, PRO Posts: 476

    Here's an inventory project kind of template thingy I've been working on.
    Has a shop, inventory, and key items.

  • tatiangtatiang Member, Sous Chef, PRO, Senior Sous-Chef Posts: 11,949

    @Summation very nice! Thanks for sharing it.

  • SummationSummation Member, PRO Posts: 476

    @tatiang said:
    Summation very nice! Thanks for sharing it.

    My pleasure. Glad you like it. :)

  • NimbleBugNimbleBug Member Posts: 483

    @summation awesome template, thank u so much for sharing :)

  • SummationSummation Member, PRO Posts: 476

    @NimbleBug said:
    summation awesome template, thank u so much for sharing :)

    No problem. :)

  • SocksSocks London, UK.Member Posts: 12,822

    Found these floating clouds while looking for something else, they're a bit cheap and cheesy ! But might be useful to someone starting out.

  • LovejoyLovejoy Member Posts: 2,078

    Dropping in my method of moving actors with overscan. No unlocking actors or any extra game attributes needed.

    More info can be found : http://forums.gamesalad.com/discussion/86157/my-universal-binary-overscan-secret-weapon#latest

  • MentalDonkeyGamesMentalDonkeyGames Member Posts: 1,276

    @Lovejoy That´s a nice little trick. Thanks for sharing.

  • ApprowApprow Member Posts: 703

    A good method for better screenshakes. Enjoy!

  • ookami007ookami007 Member Posts: 581

    Someone mentioned that this should go in the spare code thread, so I'm putting it here too.

    I've created a sample daily reward template to demonstrate the process. I have a saves table that has a column for month/day/year. I pull the values out of the table and then compare them to the current month/day/year and if it's not equal, I set the game attribute game.reward to true, otherwise it's false. Then I change scenes and show a message based on the reward boolean with a button to go back to the beginning, where it should show you the new date in the table.

    You can get the template here:

    https://dropbox.com/s/opjepqe9fr6jcfr/Daily%20Reward%20Template.zip?dl=0

  • RVvDRVvD Member, PRO Posts: 36

    Lots of great codes snippets here, does anyone know or have a code that expands or makes image/actor popup for a set amount of time? I am creating a different matching pairs game and I cannot get the images once selected to pop up without affecting the game play. Any help would be appreciated.

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

    Pipe/Maze Thingy

    This shows how to test if an actor is staying inside the pipe or within the walls of a maze. It uses some sensors to see if there is any part that of the actor that has gone too far.

    http://www.mediafire.com/download/bmd22bubc6566lo/PipeGame.zip

  • Braydon_SFXBraydon_SFX Member, Sous Chef, Bowlboy Sidekick Posts: 9,273

    @RThurman said:
    Pipe/Maze Thingy

    This shows how to test if an actor is staying inside the pipe or within the walls of a maze. It uses some sensors to see if there is any part that of the actor that has gone too far.

    http://www.mediafire.com/download/bmd22bubc6566lo/PipeGame.zip

    Very neat! Thanks for sharing!

  • ArmellineArmelline Member, PRO Posts: 5,397

    Detect the edge of a circle

    Uses magnitude to notify an actor when it has reached the edge of a circle. Made very quickly to demonstrate to someone that what @tatiang told them to do was right.

  • ArmellineArmelline Member, PRO Posts: 5,397

    Top-down Rain

    A top-down view rain effect. Uses a method very similar to the one someone (I think @Socks?) posted for a starfield. Needs some fine-tuning but is a passable effect.

Sign In or Register to comment.