can someone make a small motion extension?

Shadowblitz16

  • Posts: 44
can someone make a small extension that includes the following
a getter versoin of set volocity
a getter versoin of  the push block
a setter and getter of air friction

if you can do this I definitely use it
thanks

PhilIrby

  • Posts: 545
You already have getters and setters  for these things.  You will note that Stencyl blocks are of three shapes, those with a notched left end are setters, a rectangle left end is a getter and the diamond shaped blocks are used in comparisons .
                                                                                                        Velocity-
The set velocity block has a direction value and a speed value.  You use the[ direction of (self)] block as a getter for direction and  the [x,y-speed of (self) ]   block as a getter for speed.

                                                                                                        Push-
The  Push block is similar to the  set velocity block in that it has a direction value and a force value.  Like velocity you use the Direction of self block to get the direction value.  There  is no getter block for Force but there is an equivalency relationship with speed.  One unit of speed is equivalent to 2 units of force.

                                                                                                          Linear Damping (air friction)
[Set {linear damping} for (self)] block is the setter and [{linear damping} of (self)] block is the getter.
 

     

Shadowblitz16

  • Posts: 44
You already have getters and setters  for these things.  You will note that Stencyl blocks are of three shapes, those with a notched left end are setters, a rectangle left end is a getter and the diamond shaped blocks are used in comparisons .
                                                                                                        Velocity-
The set velocity block has a direction value and a speed value.  You use the[ direction of (self)] block as a getter for direction and  the [x,y-speed of (self) ]   block as a getter for speed.

                                                                                                        Push-
The  Push block is similar to the  set velocity block in that it has a direction value and a force value.  Like velocity you use the Direction of self block to get the direction value.  There  is no getter block for Force but there is an equivalency relationship with speed.  One unit of speed is equivalent to 2 units of force.

                                                                                                          Linear Damping (air friction)
[Set {linear damping} for (self)] block is the setter and [{linear damping} of (self)] block is the getter.
 

     

getting volocity is harder then it should be but I can deal with that

getting  push IS NEEDED as getting it currently is just too difficult for people that don't understand how it works

setting and getting the friction i'm talking about does not seem to exist
the friction i'm talking about is basicly how fast you deceleratefrom your current speed to 0 for both negative and positive speeds

rob1221

  • *
  • Posts: 9421
You can't get force/push because it's not a property of an actor.

Shadowblitz16

  • Posts: 44
it needs to be somehow tied to a block called speed then
see here http://community.stencyl.com/index.php/topic,43003.0.html