FREE sin and cos tool for cool movements! FREE

LumpAppsLumpApps Member Posts: 2,881
edited September 2013 in Working with GS (Mac)
Hi!

People have been asking how to make loopings and other nice movements using cos and sin functions.
I have a free template (if you want to give it a name) that shows you some basic moves.
But there is more! you can change attributes on the fly and read out the code needed to make all kinds of fancy moves.
You can then write the code down to use in your own actor.
I have been playing with it and some of the figures are awesome.

I have included six static figures and 3 moving figures as an example/starting point including a looping.

Download Mosinus by Lump Apps here!

Cheers,
Ludwig

image
image
«1

Comments

  • CloudsClouds Member Posts: 1,599
    Nice !
  • gyroscopegyroscope I am here.Member, Sous Chef, PRO Posts: 6,598
    edited October 2013

    Wow, Ludwig ( @LudwigHeijden ), am I excited about this! It looks to be truly impressive stuff - it's going to be the biz for a future project. Many thanks! I'll be putting your name in the credits for certain if I use anything of it. OK, I'll download it now! :-))

    PS Don't hold your breath for the finished app tho', it's about 7th on my list and I'm only about to finish my first one.... ;-)
  • simo103simo103 Member, PRO Posts: 1,331
    Very cool ... thanks.
  • RThurmanRThurman Member, Sous Chef, PRO Posts: 2,881
    @LudwigHeijden ... This is great! I can see that you have put a lot of work into it. Thanks so much.

    RThurman
  • kkertzkkertz Member Posts: 12
    Thank you very much. What a great tool!
  • Rob2Rob2 Member Posts: 2,402
    Seriously groovy :)
  • ChobbifaceChobbiface PRO Posts: 491
    This is great. Cheers!
  • GreenHavenGamesGreenHavenGames Member Posts: 62
    I was looking around math sites yesterday, trying to find some basic calculations for sin and cos shapes and I then I converted those concepts into GS. It worked, but I am going to have to say that this is much, much better! Amazing for a free tool. I would buy this!
  • LumpAppsLumpApps Member Posts: 2,881
    edited January 2012
    Thanks guys. There are some things I have to work on. Like making an actor point in the right direction. Vector to angle on the actor itself doesn't work because the actor has no velocity. In the looping you can use vector to angle to the center point.
    Ad a constraint attribute. Constrain the self.angle to vectortoangle(self.velocityX,selfvelocityY). I am on my iPhone so I could have some errors in the syntax.

    The angle1/2 button in this tool eliminates one of the functions and turns it to 1 so in the final formula only has one function and you can leave the other out. So If angle1 is 1 leave that part out. Hope this is clear.

    I'll try and update some of this stuff later.

    Until then please post screenshots of your most fun shapes here please.
    I'd like to see a butterfly ;)

    Cheers!
    Ludwig
  • LeonardDeveloperLeonardDeveloper Member Posts: 4,630
    Nice one! Ludwig
  • gregr209gregr209 Member Posts: 441
    Well done!!!!! Great job!
  • CloudsClouds Member Posts: 1,599
    @LudwigHeijden

    Don't forget spirals ! (just have the cos / sin multipliers grow over time (using game.time for instance)).
  • LumpAppsLumpApps Member Posts: 2,881
    Or use the angle to change the radius. For example constrain game.radius to angle

    Btw. This is my first use of tables and it rocks!
  • ultimaultima Member, PRO Posts: 1,207
    insane.
  • imGuaimGua Member Posts: 1,089
    God doesn't like this template, cause it has sin : trollface:
  • MotherHooseMotherHoose Member Posts: 2,456
    just Amazing! and Fantastic and Wonderful and Fascinating and Fabulous and Brilliant … I liked it!

    Big Thanx!
    @};- MH
  • LumpAppsLumpApps Member Posts: 2,881
    @imGua my name isn't Heijden wich means Heathen in Dutch for nothing >:)
  • mithraweptmithrawept Member, PRO Posts: 167
    This is ten tonnes of excellent. Thanks Ludwig!
  • calvin9403calvin9403 Member Posts: 3,186
    very will done ludwig!
  • anithmukanithmuk Member Posts: 235
    woah great stuff, thanks.
  • TouchTiltGamesTouchTiltGames Member Posts: 1,162
    Wow very kewl, and nice homage to Asteroids in the BG there :)
  • ClockClock Member Posts: 308
    wow thank you!
  • quantumsheepquantumsheep Member Posts: 8,188
    Nice one Ludwig!

    Downloaded it but not had a chance to play (I'm still on .9.82!) but soon as I have a reason to update my creator, I'll give it a spin!

    Cheers!

    QS :D
  • beefy_clyrobeefy_clyro Member Posts: 5,394
    Very nicely done :)
  • LumpAppsLumpApps Member Posts: 2,881
    @quantumsheep can't you use more GS creators simultanious? Just don't install the viewer on your devices.
    Then you can play with tables too.
    I guess there is a risk messing up your files when you double click on a project and open the wrong creator.
    But the last version works well so perhaps you can back up a file and try on a copy.
    You are really missing the table stuff. It is awesome and probably of some use for your current project.

    If you don't have the latest Xcode and have to install the viewer that might cost some time though. I had huge problems getting the viewer to work with the new Xcode but tShirtBooth videos helped me out. (who else ;) )

    Cheers!
    Ludwig
  • UtopianGamesUtopianGames Member Posts: 5,692
    edited January 2012
    Excellent work, users will find this very erm useful:)

    Darren.

    GS Templates
    GS Tools
    Art Packs
    Music Packs
  • LumpAppsLumpApps Member Posts: 2,881
    Thanks Darren!
  • LumpAppsLumpApps Member Posts: 2,881
    edited January 2012
    @calvin9403 ;)
    But it has tables so probably will not work.
  • perfectanswerperfectanswer PRO Posts: 121
    Very usefull and a great contribution for the community. Thx!
Sign In or Register to comment.