What about letting users define names and properties of a player?

games4hakangames4hakan Member Posts: 10
edited December 2011 in Working with GS (Mac)
Hi there,
Am new to this and have spent time reading help file, forums and watched virtually every tutorial on Cookbook/Youtube channel...
...so tell me if I'm wrong - but - can't find a single piece on how to let a user do the following:
1. in a scene gather x number of 'players' and assign them certain properties such as name, speed, weight etc
2. in a settings menu or similar let the user tweak 'global settings' such as windspeed, gravity etc.

Doesn't those features exist or have I just been blind or not trying hard enough?

Thanks for the help,

/Håkan

Comments

  • SlickZeroSlickZero Houston, TexasMember, Sous Chef Posts: 2,870
    That's possible with the exception of selecting a group of actors. You have to do them individually. There is a gravity attribute in the left window when you are in "scene" and have the attributes tab selected on the left side. But that gravity will apply to everything in the scene that has it's movability option active. What you can do individually, is have a move behavior on each actor, and have it set to straight down, and you can apply different amounts of force for each actor that way.

    And there is a weight (density) option under the "Physics" section, along with several other options you can play around with and tweak to your liking. And you can set angular velocities in the same area under motion if you want a character to move constantly in any direction.

    As far as naming an actor something else, it's just a matter of double clicking the name in the bin, and changing it.
  • mynameisacemynameisace Hull, UKMember Posts: 2,484
    Everything there is possible, I will make a quick demo for you on how to increase the global gravity, etc.

    Ace
  • mynameisacemynameisace Hull, UKMember Posts: 2,484
    edited December 2011
    Here you go - I just made this demo... It allows you to change global gravity pretty easily.

    http://ellerker.net/files/GSGlobalGravity.zip

    Ace
  • games4hakangames4hakan Member Posts: 10
    First of all - thank you for both quick answers and also for the example file! It's really great with ppl helping out this fast!

    To my question...
    What I meant was that I would like the player of the game go to something like a settings menu. In that menu he/she should be able to define his own 'players' of the game. Let's say that he has one green player - one blue and one orange. I would want him to firstly be able to per player category i.e green, blue and orange set his own specific attributes on them. For example he should be able to assign friction x on green and friction y on the blue etc...

    ...so this is some kind of setup mode before he begins playing.

    The second part I would want to let the user do is to duplicate his green players to as many as he would need for the game.

    I will continue to look around - but - I have not seen this functionality in any game so far.

    The game example will definitely help me a bit on the way and maybe I will rethink and let different scenes have the possibilities to have different attributes (at a second thought this might actually be more useful...)

    Again - thanks for quick help.

    /Håkan
  • mynameisacemynameisace Hull, UKMember Posts: 2,484
    Yeah, pretty easy. You would just need an attribute for each set of actors and just change the gravity, etc for each group of actor's attributes.

    Ace
Sign In or Register to comment.