@Bikkits This is a lot harder of a thing to do than you probably expect - if you're trying to have grounds at different levels you're better off trying to combine the code from this tutorial with that of a traditional platformer tutorial. As for hill physics, that's really advanced stuff. I can make a hill engine, but it'd be very hard to teach it as my tutorials are generally aimed at beginners.
Great tutorial for beginners, but sorry, i already knew how to do this. In fact, I want to put a gravity in so it doesn't bounce upon hitting the ground... but mine still vibrates. I would love some help- alex
@HueyF003 Thanks man! If you think you've followed this tutorial to the letter then it's probably just a stupid mistake like a missed out curly bracket or improper instance names (remember, giving a symbol a name and an instance name are 2 different things). Check the video again to make sure you've given the character the same instance name that appears in the code. For example, if you copied the AS from the description, your character should have the instance name 'dude' (no caps or quotes)
@roojames thx for responding man, yea i kno about the instance name, my characters instance name is "player" so i normally just change it in your code, i looked at your character animation tutorial to get my character to move, but you didn't add a jump or gravity so i got that from another tutorial, maybe the two different codes are throwing things off, what do u think, because i am stumped right now :(
SN: I'll check for curlies, hopefully it's something that simple
@roojames Im STOMPED man, i can't figure out what im doing wrong, do you think you can send me a code, or i can send you the code for my character and you can use your more experienced eye to see if you can spot the error, if you have time of course? I would REALLY appreciate it.
Hi I don't know if you do this anymore, but I would like to know if there is some way to have like a wall stoping the speed and rotation like a wall would.
@zitroooz So sorry if this problem has either been abandoned or solved already, but yes, I do have a solution. If you've watched one of my earlier tutorials, you'll have an idea of how basic walls work in AS; when the character hits the wall he/she is pushed backwards at the same speed as their forward velocity. For example, if they were moving at -4 pixels per frame, a hitTest with the wall would negate the movement by moving them +4 ppf.
@zitroooz In this example, the wall would work in a similar mould, except given the dynamic nature of a rolling object's velocity, we can not negate that with one number. With this engine, the speed of our little dude is directly proportional to its rotation, so the 'Rotation' variable we set up is effectively also the speed variable, so to negate it, all we need to do is push it a speed of -Rotation when it hits the wall.
I got one question though. Im not sure if this would be answered when i try it out myself, but right now i don't have flash available so i can't try. Anyway, my question is: how do you edit the whole level? Because from viewing this, it looks like you can only see what starts on the screen.
i have a question..how can you put a word in v-cam?
JhamPowL19 4 months ago
Thanks dude
PsychoNinjaPirate 1 year ago
How do you make the ball roll along a ground and, more importantly, up/down a hill?
Bikkits 1 year ago
@Bikkits This is a lot harder of a thing to do than you probably expect - if you're trying to have grounds at different levels you're better off trying to combine the code from this tutorial with that of a traditional platformer tutorial. As for hill physics, that's really advanced stuff. I can make a hill engine, but it'd be very hard to teach it as my tutorials are generally aimed at beginners.
roojames 1 year ago
@roojames Okay so...
I've copied code from two sources now but from either one when the ball touches the ground it starts bouncing like crazy.
Code: /watch?v=BCPwTIsSVSw
Also, thew ball falls through all the platforms but the first one it lands on.
Damn... this is harder than I ever thought it would be.
Bikkits 1 year ago
Great tutorial for beginners, but sorry, i already knew how to do this. In fact, I want to put a gravity in so it doesn't bounce upon hitting the ground... but mine still vibrates. I would love some help- alex
alexk175 1 year ago
love your tutorials man but i can NOT get the VCam to follow my character and i cant figure out why, please HELP
HueyF003 1 year ago
@HueyF003 Thanks man! If you think you've followed this tutorial to the letter then it's probably just a stupid mistake like a missed out curly bracket or improper instance names (remember, giving a symbol a name and an instance name are 2 different things). Check the video again to make sure you've given the character the same instance name that appears in the code. For example, if you copied the AS from the description, your character should have the instance name 'dude' (no caps or quotes)
roojames 1 year ago
@roojames thx for responding man, yea i kno about the instance name, my characters instance name is "player" so i normally just change it in your code, i looked at your character animation tutorial to get my character to move, but you didn't add a jump or gravity so i got that from another tutorial, maybe the two different codes are throwing things off, what do u think, because i am stumped right now :(
SN: I'll check for curlies, hopefully it's something that simple
HueyF003 1 year ago
@roojames Im STOMPED man, i can't figure out what im doing wrong, do you think you can send me a code, or i can send you the code for my character and you can use your more experienced eye to see if you can spot the error, if you have time of course? I would REALLY appreciate it.
HueyF003 1 year ago
@HueyF003 a'ight send me all of your code via a private message and I'll see what I can do
roojames 1 year ago
Hi I don't know if you do this anymore, but I would like to know if there is some way to have like a wall stoping the speed and rotation like a wall would.
zitroooz 1 year ago
@zitroooz So sorry if this problem has either been abandoned or solved already, but yes, I do have a solution. If you've watched one of my earlier tutorials, you'll have an idea of how basic walls work in AS; when the character hits the wall he/she is pushed backwards at the same speed as their forward velocity. For example, if they were moving at -4 pixels per frame, a hitTest with the wall would negate the movement by moving them +4 ppf.
roojames 1 year ago
@zitroooz In this example, the wall would work in a similar mould, except given the dynamic nature of a rolling object's velocity, we can not negate that with one number. With this engine, the speed of our little dude is directly proportional to its rotation, so the 'Rotation' variable we set up is effectively also the speed variable, so to negate it, all we need to do is push it a speed of -Rotation when it hits the wall.
roojames 1 year ago
@zitroooz Sorry for the 3 part answer (damn character-count), but if that was too complicated for you, I'm about to make a tutorial about it.
roojames 1 year ago
@roojames I found a way by trying some stuff.. took a while but I got it done. :)
zitroooz 1 year ago
Comment removed
YoshiJumper 1 year ago
Wow, never fail to impress.
I got one question though. Im not sure if this would be answered when i try it out myself, but right now i don't have flash available so i can't try. Anyway, my question is: how do you edit the whole level? Because from viewing this, it looks like you can only see what starts on the screen.
5/5 (love your tuts)
Rman159Productions 1 year ago
@Rman159Productions I'm sure you'll find out when you have flash available. Most of the basics are very self explanatory.
roojames 1 year ago
ahh yes ok, got flash now, and have got vcam... Learning how to use vcam now =D
Thanks
Rman159Productions 1 year ago
Hey its sam. Video helped alot, i understand VCam. cheers mate
Bynghams68 2 years ago