How To

How would I make a straight line which bends when it is hit?

0

Roger Davis 2020-01-05 05:16 (Edited)

I want to be able to program something where an otherwise straight line will appear to bend slightly when it is hit by say, . .for example, - a ball. Suppose you had a moving ball, which was enclosed within a large square that had flexible sides to it, . . . How would you go about making it look like the ball was applying some amount of pressure to the insides of the sides of the square as it bounced around? 🤔 It would also need to 'rebound' / return back to a straight line once the ball was no longer touching it. 🤔 In other words, - the lines of the square need to look like they are made of elastic, and have a rubber-band effect!


was8bit 2020-01-05 06:04

Think if an old film ... it has different images which when put together create the illusion of motion...

So, what i mean is you will need to draw extra graphics that look like the line is bent...

Take a look at my BUNNIES game... i have a trampoline the bunnies jump on.. :)


Roger Davis 2020-01-05 06:23

Many thanks was8bit - yet again you come to my rescue! : )


was8bit 2020-01-05 06:56

Glad i can be of some help :)


gamer_12321 2020-01-06 07:15

It’s a story ?!!
« Another time @was8bit comes to rescue @Roger Davis !


Roger Davis 2020-01-07 08:33

gamer_12321, Hi there, - not sure what you mean by 'It's a story?!!' 🤔 I asked a perfectly legitimate question, and got a great reply from was8bit. I have a REAL need to know the answer to the above question, because I have a retro game in mind that I would like to try to program in NX. I am unfortunately only a RAW BEGINNER, and so have a lot of learning to do. Was8bit was very kind to reply to me, and I have had considerable help from him recently, so I thanked him for that. What's the problem? 🤔 Other people are also helped frequently on here. I'm nothing special - just take a look at GAMELEGEND's recent post in which he asks multiple questions. By "Rescue ", I merely meant that was8bit was of great help in this matter. If we beginners don't ask questions, how else are we to learn things? Yes, . . You can READ the NX Manual, but that wouldn't have helped me solve the above question. I only ask questions that are relevant to the plans I have for the future. I am NOT a time-waster. Please do not think that my question was some kind of "story". I WILL be programming my planned game fairly soon. Many thanks, Roger.


Roger Davis 2020-01-07 08:54 (Edited)

I am confident that I asked a legitimate question that is relevant to my future plans. I am also satisfied that I have only used this Forum in a responsible way, for the purpose in which it is intended to be used.


was8bit 2020-01-07 13:01

@Roger, yes, asking questions is the basis of learning.... i have asked TONS of questions since my beginnings with original lowres to current NX, and i will continue doing so as issue pop up :)

... also, its best to not "feed the trolls" and respond ... but in this case it might have been meant in genuine good humor and not ridicule, sometimes it can be tricky to figure out intentions behind a post... i try to assume the better possibility :)

... so, keep askin questions as needed... i may not always have the right answer, sometimes i may also misunderstand or sometimes i may even put out a wrong answer (no one is perfect).... but i enjoy being helpful as i can... lowres has given me such happiness... it allows me to escape the worries and stress of life and creates a world i can explore, create, and customize my own games on my apple devices... :D it is a honor to be able to help share that happiness :)


gamer_12321 2020-01-07 13:04

...


gamer_12321 2020-01-07 13:04

I’m don’t want to say that


gamer_12321 2020-01-07 13:05

...


was8bit 2020-01-07 13:11

@gamer, i like your games... thank you for sharing your games... i also enjoy seeing many new ideas :D


Roger Davis 2020-01-07 21:26

Me too! : )


gamer_12321 2020-01-08 08:22

☺️


Log in to reply.