help with moving entities
Posted: Sat Aug 04, 2012 12:55 am
I want to preface this post with two apologies. One for the inevitable "why couldn't you find this via the search option?" comments, and the other for being such a massive n00b, not only at LOVE/Lua itself, but at programming/coding universally.
Ive been following the Goature youtube videos to learn the basis of LOVE2d and Lua coding and such, and I feel like I've come a long way, at least in my general understanding of how the program functions and how code is interpreted.
However, upon completion of my first few initial goals (get entities to work, get a tile map built, move the map around via directional keys) I have come to a point where I have no idea how to go about working towards the next goal of making an entity that I can move with the directional keys, and that will, as its moving, move the map with it.
I downloaded a few .loves here off of various other threads to check their code, and it almost (to me) looks like theyre just making the code up as they go. There are all sorts of functions and things going on that I dont see anywhere in the Love wiki, etc.
Can anyone explain this simply to me? Can I just make/name a function, and then as long as code it right itll do whatever i want? Is it really that simple??
Any advice, guidance would be VASTLY appreciated.
Thank you,
Justin
Ive been following the Goature youtube videos to learn the basis of LOVE2d and Lua coding and such, and I feel like I've come a long way, at least in my general understanding of how the program functions and how code is interpreted.
However, upon completion of my first few initial goals (get entities to work, get a tile map built, move the map around via directional keys) I have come to a point where I have no idea how to go about working towards the next goal of making an entity that I can move with the directional keys, and that will, as its moving, move the map with it.
I downloaded a few .loves here off of various other threads to check their code, and it almost (to me) looks like theyre just making the code up as they go. There are all sorts of functions and things going on that I dont see anywhere in the Love wiki, etc.
Can anyone explain this simply to me? Can I just make/name a function, and then as long as code it right itll do whatever i want? Is it really that simple??
Any advice, guidance would be VASTLY appreciated.
Thank you,
Justin