LoginLogin

End of 2017 Programming Contest

Root / Site Discussion / [.]

haloopdyCreated:
But i got another question. How do i make a knockback?

But i got another question. How do i make a knockback?
Could you verify what you mean by knockback?

But i got another question. How do i make a knockback?
Could you verify what you mean by knockback?
When i touch a monster i jump a little back. Also do you (or somebody) know how to make something that doesn't apply gravity on (sorry if it's wrong irdk) bounce off walls and go the opposite direction it went before? Like this: Red ball it that "something" and those blue arrows are obvious + black wall lol

But i got another question. How do i make a knockback?
Could you verify what you mean by knockback?
When i touch a monster i jump a little back. Also do you (or somebody) know how to make something that doesn't apply gravity on (sorry if it's wrong irdk) bounce off walls and go the opposite direction it went before? Like this: Red ball it that "something" and those blue arrows are obvious + black wall lol
Sorry, doing something like that would require a good knowledge of trigonometry which I don’t really have. though there are plenty of other people that do know that kind of stuff here.

But i got another question. How do i make a knockback?
Could you verify what you mean by knockback?
When i touch a monster i jump a little back. Also do you (or somebody) know how to make something that doesn't apply gravity on (sorry if it's wrong irdk) bounce off walls and go the opposite direction it went before? Like this: Red ball it that "something" and those blue arrows are obvious + black wall lol
Sorry, doing something like that would require a good knowledge of trigonometry which I don’t really have. though there are plenty of other people that do know that kind of stuff here.
A'ight, guess i'll have to think of something else if nobody helps me.

But i got another question. How do i make a knockback?
Could you verify what you mean by knockback?
When i touch a monster i jump a little back. Also do you (or somebody) know how to make something that doesn't apply gravity on (sorry if it's wrong irdk) bounce off walls and go the opposite direction it went before? Like this: Red ball it that "something" and those blue arrows are obvious + black wall lol
Sorry, doing something like that would require a good knowledge of trigonometry which I don’t really have. though there are plenty of other people that do know that kind of stuff here.
A'ight, guess i'll have to think of something else if nobody helps me.
Hey ChaseCZ In the Bashful's Nightmare http://smilebasicsource.com/page?pid=933 game I built a knockback function into every enemy type for when they got hit. Depending on the enemy the code will invert the direction and apply a number of backward steps until complete. If the enemy hits a wall I had the motion stop rather than ricochet as in your drawing. I used a simplification for direction "scheme" such that east=90 and west =-90. This way the knockback works okay without any complex trigonometry. If the enemy is heading at 70 degrees then a knockback of -70 doesnt look so bad. Very little attacking occurs north/south. One of the 2nd level enemies has no movement knockback at all ... The main character Bashful doesnt have a movement-based knockback. She only pauses and jumps Punchline. There are many ways to approach knockback. They dont need to be complex to be effective.

But i got another question. How do i make a knockback?
Could you verify what you mean by knockback?
When i touch a monster i jump a little back. Also do you (or somebody) know how to make something that doesn't apply gravity on (sorry if it's wrong irdk) bounce off walls and go the opposite direction it went before? Like this: Red ball it that "something" and those blue arrows are obvious + black wall lol
Sorry, doing something like that would require a good knowledge of trigonometry which I don’t really have. though there are plenty of other people that do know that kind of stuff here.
A'ight, guess i'll have to think of something else if nobody helps me.
Hey ChaseCZ In the Bashful's Nightmare http://smilebasicsource.com/page?pid=933 game I built a knockback function into every enemy type for when they got hit. Depending on the enemy the code will invert the direction and apply a number of backward steps until complete. If the enemy hits a wall I had the motion stop rather than ricochet as in your drawing. I used a simplification for direction "scheme" such that east=90 and west =-90. This way the knockback works okay without any complex trigonometry. If the enemy is heading at 70 degrees then a knockback of -70 doesnt look so bad. Very little attacking occurs north/south. One of the 2nd level enemies has no movement knockback at all ... The main character Bashful doesnt have a movement-based knockback. She only pauses and jumps Punchline. There are many ways to approach knockback. They dont need to be complex to be effective.
Sure, i'll check that out, thanks but right now i'm working on something else and knockback isn't really necessary because when you touch a monster you get an inviciblity for 3 seconds. Picy3 I was looking at the code from Afterwar (yes... Again xd) and i don't understand the code when shooting in the dorections you're facing, because i can't do this I got another idea. I got the rotating but not the shooting... EDIT: Looks like i made my own code. I also used a little bit of trigonometry even through i don't even know what trigonometry is lol EDIT2: It wasn't even necessary LMAO. Oh god why am i so dumb? Lel

But i got another question. How do i make a knockback?
Could you verify what you mean by knockback?
When i touch a monster i jump a little back. Also do you (or somebody) know how to make something that doesn't apply gravity on (sorry if it's wrong irdk) bounce off walls and go the opposite direction it went before? Like this: Red ball it that "something" and those blue arrows are obvious + black wall lol
Sorry, doing something like that would require a good knowledge of trigonometry which I don’t really have. though there are plenty of other people that do know that kind of stuff here.
A'ight, guess i'll have to think of something else if nobody helps me.
Hey ChaseCZ In the Bashful's Nightmare http://smilebasicsource.com/page?pid=933 game I built a knockback function into every enemy type for when they got hit. Depending on the enemy the code will invert the direction and apply a number of backward steps until complete. If the enemy hits a wall I had the motion stop rather than ricochet as in your drawing. I used a simplification for direction "scheme" such that east=90 and west =-90. This way the knockback works okay without any complex trigonometry. If the enemy is heading at 70 degrees then a knockback of -70 doesnt look so bad. Very little attacking occurs north/south. One of the 2nd level enemies has no movement knockback at all ... The main character Bashful doesnt have a movement-based knockback. She only pauses and jumps Punchline. There are many ways to approach knockback. They dont need to be complex to be effective.
Sure, i'll check that out, thanks but right now i'm working on something else and knockback isn't really necessary because when you touch a monster you get an inviciblity for 3 seconds. Picy3 I was looking at the code from Afterwar (yes... Again xd) and i don't understand the code when shooting in the dorections you're facing, because i can't do this I got another idea. I got the rotating but not the shooting... EDIT: Looks like i made my own code. I also used a little bit of trigonometry even through i don't even know what trigonometry is lol EDIT2: It wasn't even necessary LMAO. Oh god why am i so dumb? Lel
ur not dumb

Well crap. I got nothing and I still need to figure out the 2d platforming bits which is still a pain.

idk if ill still be able to enter after losing all my stuff i had made.. if you dident know there was an accident and my sprites bg tiles and all my code i had make for the game got deleted so im at square one

idk if I’ll still be able to enter after losing all my stuff i had made... If you didn't know, there was an accident; and my sprites, BG tiles, and all my code I had made for the game got deleted; so I'm at square one.
It’s starting to sound like there will be maybe two or three projects to vote on after all these announcements of not knowing what to do or losing stuff etc. Hopefully you can make good progress if you feel like trying it back up again.

idk if ill still be able to enter after losing all my stuff i had made.. if you dident know there was an accident and my sprites bg tiles and all my code i had make for the game got deleted so im at square one
Ahh, what a shame but I think you'll think of something, you got 26 days left, that's enough to make at least something good
It’s starting to sound like there will be maybe two or three projects to vote on after all these announcements of not knowing what to do or losing stuff etc. Hopefully you can make good progress if you feel like trying it back up again.
Don't forget that there are people that don't post anything to the thread but they join the contest anyway
I think I might try to do a simple compiler as a contest entry.
Great idea!

idk if I’ll still be able to enter after losing all my stuff i had made... If you didn't know, there was an accident; and my sprites, BG tiles, and all my code I had made for the game got deleted; so I'm at square one.
Sorry to hear about that, Picy3, happened to me with a game I was pretty committed to about a year ago, so I know the feeling! I've got some ideas if you (or anyone else I suppose) want to start fresh on the competition.
It’s starting to sound like there will be maybe two or three projects to vote on after all these announcements of not knowing what to do or losing stuff etc. Hopefully you can make good progress if you feel like trying it back up again.
I think people are just waiting. I'm sure there'll at least be 4. I am working on one now but this post is the first time I've mentioned it.



I guess I should post these here https://www.youtube.com/watch?v=s6evstboTOo https://www.youtube.com/watch?v=QyaV1BC-euI https://www.youtube.com/watch?v=7IpXdFVNmj0 https://www.youtube.com/watch?v=gF-_6OFFJSE
Now you should combine those to make the character walk on the globe with those trees.

*panics* I have competition

idk if I’ll still be able to enter after losing all my stuff i had made... If you didn't know, there was an accident; and my sprites, BG tiles, and all my code I had made for the game got deleted; so I'm at square one.
Sorry to hear about that, Picy3, happened to me with a game I was pretty committed to about a year ago, so I know the feeling! I've got some ideas if you (or anyone else I suppose) want to start fresh on the competition.
It’s starting to sound like there will be maybe two or three projects to vote on after all these announcements of not knowing what to do or losing stuff etc. Hopefully you can make good progress if you feel like trying it back up again.
I think people are just waiting. I'm sure there'll at least be 4. I am working on one now but this post is the first time I've mentioned it.
yeah there will be more im sure also im continuing with my idea so im good on ideas for now.. mostly..


I'm done with snowball throwing and collision, time to do the real purpose of it... which i won't spoil yet lol