getters and setters

Shadowblitz16

  • Posts: 44
just a simple suggestion for the next update
can every block have a getters and a setters
or at least the ones its feasible please

just would make stencyl a lot easier to use

« Last Edit: August 05, 2015, 08:39:57 pm by Shadowblitz16 »

SadiQ

  • Posts: 1795
You'll have to be more explicit about what you mean. The getters and setters for attributes are in there:
Proud member of the League of Idiotic Stencylers! Doing things in Stencyl that probably shouldn't be done.

Shadowblitz16

  • Posts: 44
like for things like movement/motion blocks preferably
I have a topic about it here but it is a suggestion for a extension
http://community.stencyl.com/index.php/topic,43073.new.html#new

SadiQ

  • Posts: 1795
It would be a lot faster and easier for us if you would actually tell us what you want to achieve.
 Even if GameMaker has a feature that Stencyl lacks, there are many ways to achieve the same task.
Proud member of the League of Idiotic Stencylers! Doing things in Stencyl that probably shouldn't be done.

Shadowblitz16

  • Posts: 44
i want to achieve easier direction movement in general
for people who don't want or don't know how to do it with the built in functions

for example
it would be nice to have a way to read or get the motion the player is traveling in and set it without messing up their motion
and that wouldn't be all you could do with it

SadiQ

  • Posts: 1795
Stencyl already has blocks that allow you to read an actor's speed, and it has a block to set the actors velocity as well (set velocity to ... block).
You can look at some of the preshipped behaviors to see how some rules of motion work.
Proud member of the League of Idiotic Stencylers! Doing things in Stencyl that probably shouldn't be done.

Shadowblitz16

  • Posts: 44
tell me where I can read the actor's speed then
I don't mean xspeed and yspeed I mean speed(directional)
and maybe then it needs  a getter and setter for angle of motion too
also it needs a airfriction getter and setter

letmethink

  • *
  • Posts: 2545
What would you read in speed as? Direction and velocity?
~Letmethink

DTH

  • *
  • Posts: 148
tell me where I can read the actor's speed then

Easy Math Extensions "magnitude of velocity for" does just that I beleive