Fallen at the first fence...
gyroscope
I am here.Member, Sous Chef, PRO Posts: 6,598
Hi all, glad to be posting for the first time here! Although I joined September last year, I've not really studied GS until now. I think it's terrific, with its hidden power in a seemingly straightforward interface. I've been working through a few introductory examples tonight, and seem to have "fallen at the last fence" though. I don't know if it's something I'm doing wrong (although for the life of me I can't see what that could be) or there's a bug about, don't know...
OK: really straightforward first excercise for me: moving a single graphic up and down with the arrow keys. Created Rule: Actor receives event: key up keyboard, is down. Added behaviour: Accelerate: Direction 90 deg., Acc. 300, Relative to actor. In Otherwise: Constrain Attribute: self.Motion. Linear Velocity.X to 0. Same with Y. Test it, it is fine, moving cleanly upwards.
Option copy the whole lot, set it for Down key, Accelerate Direction 270 deg. Test it and both up and down, the graphic jerks up or down one pixel at a time, really slowly...
Has anyone any idea what's going on please?
OK: really straightforward first excercise for me: moving a single graphic up and down with the arrow keys. Created Rule: Actor receives event: key up keyboard, is down. Added behaviour: Accelerate: Direction 90 deg., Acc. 300, Relative to actor. In Otherwise: Constrain Attribute: self.Motion. Linear Velocity.X to 0. Same with Y. Test it, it is fine, moving cleanly upwards.
Option copy the whole lot, set it for Down key, Accelerate Direction 270 deg. Test it and both up and down, the graphic jerks up or down one pixel at a time, really slowly...
Has anyone any idea what's going on please?
""You are in a maze of twisty passages, all alike." - Zork temp domain http://spidergriffin.wix.com/alphaghostapps
Comments
""You are in a maze of twisty passages, all alike." - Zork temp domain http://spidergriffin.wix.com/alphaghostapps
CLick support at the top of the page and study the wiki. There is a lot of good stuff in it.
I'll just mention here: I edited my post and it duplicated it rather than amended it; strange...
HassGames: I had a cursory glance through the behaviours list and must have missed that one; I'll experiment with that.
scitunes: nicely explained; I understand your logical explanation. I'll check out the wiki.
I learned the way I did it from a video on the Support page (Create a Game From Scratch Part 1). Maybe I misunderstood, don't know.
Thank you both again!
:-)
""You are in a maze of twisty passages, all alike." - Zork temp domain http://spidergriffin.wix.com/alphaghostapps
QS
Dr. Sam Beckett never returned home...
Twitter: https://twitter.com/Quantum_Sheep
Web: https://quantumsheep.itch.io
:-)
""You are in a maze of twisty passages, all alike." - Zork temp domain http://spidergriffin.wix.com/alphaghostapps
good luck!
:-)
""You are in a maze of twisty passages, all alike." - Zork temp domain http://spidergriffin.wix.com/alphaghostapps