Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

So i ' m working on a 2 D game so far I have gotta the screen size from camera, gotten the size of my

So i'm working on a 2D game so far I have gotta the screen size from camera, gotten the size of my sprite and made the sprite go off in a direction at a certain speed how do I now work with collisions using those values, check for collision with the wall in Update Respond to collisions by (1)moving the entity out of the wall and (2) changing the velocity as discussed in the video above. I'm not sure what to code is it my sprites postion and then the walls position what does that look like?

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Pro PowerShell For Database Developers

Authors: Bryan P Cafferky

1st Edition

1484205413, 9781484205419

More Books

Students also viewed these Databases questions

Question

What is the purpose of the Salary Structure Table?

Answered: 1 week ago

Question

What is the scope and use of a Job Family Table?

Answered: 1 week ago