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.
@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.
Fortuna Infortuna Forti Una
tatiangMember, Sous Chef, PRO, Senior Sous-ChefPosts: 11,949
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.
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.
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.
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.
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.
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.
Comments
Nice !
Neat...
... and I especially like this aspect.
Thanks, guys. Someone asked how to do it so I obliged. And as for working in 12.20, it was an absolute pleasure.
New to GameSalad? (FAQs) | Tutorials | Templates | Greenleaf Games | Educator & Certified GameSalad User
Reverting to 12.20 was like a breath of fresh air.
Fortuna Infortuna Forti Una
Wow, as a n00bie, this thread is a-mazing! Thank you to everyone that contributes!
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
New to GameSalad? (FAQs) | Tutorials | Templates | Greenleaf Games | Educator & Certified GameSalad User
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.
My Games:
https://itunes.apple.com/us/developer/ethan-sarif-kattan/id825823924
https://play.google.com/store/apps/developer?id=ETG+Ltd.
Website: https://etggames.com
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.
Follow us: Twitter - Website
Pretty cool effect - based off of orbz's drawing template
My Games:
https://itunes.apple.com/us/developer/ethan-sarif-kattan/id825823924
https://play.google.com/store/apps/developer?id=ETG+Ltd.
Website: https://etggames.com
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
New to GameSalad? (FAQs) | Tutorials | Templates | Greenleaf Games | Educator & Certified GameSalad User
Thanks. I think that's solved it. I'll try and let you know. Thanks.
Smooth Timer Bar
See http://forums.gamesalad.com/discussion/85614/best-way-to-achieve-a-smooth-health-bar/p1
Note: made with Mac Creator 13.7
New to GameSalad? (FAQs) | Tutorials | Templates | Greenleaf Games | Educator & Certified GameSalad User
You guys are incredible! Thanks very very much for sharing this wealth of knowledge!
@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.
Fortuna Infortuna Forti Una
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
New to GameSalad? (FAQs) | Tutorials | Templates | Greenleaf Games | Educator & Certified GameSalad User
Here's an inventory project kind of template thingy I've been working on.
Has a shop, inventory, and key items.
Mathtap.com (Android) | Fridgemanager.com (Android) | Breakoutofspace.com (Android)
@Summation very nice! Thanks for sharing it.
New to GameSalad? (FAQs) | Tutorials | Templates | Greenleaf Games | Educator & Certified GameSalad User
My pleasure. Glad you like it.
Mathtap.com (Android) | Fridgemanager.com (Android) | Breakoutofspace.com (Android)
@summation awesome template, thank u so much for sharing
No problem.
Mathtap.com (Android) | Fridgemanager.com (Android) | Breakoutofspace.com (Android)
Found these floating clouds while looking for something else, they're a bit cheap and cheesy ! But might be useful to someone starting out.
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
Fortuna Infortuna Forti Una
@Lovejoy That´s a nice little trick. Thanks for sharing.
Mental Donkey Games
Website - Facebook - Twitter
A good method for better screenshakes. Enjoy!
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
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.
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!
My GameSalad Academy Courses! ◦ Check out my quality templates! ◦ Add me on Skype: braydon_sfx
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.
Contact me for custom work - Expert GS developer with 15 years of GS experience - Skype: armelline.support
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.
Contact me for custom work - Expert GS developer with 15 years of GS experience - Skype: armelline.support