Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

AppGameKit Classic Chat / Collision Pointer

Author
Message
fubarpk
Retired Moderator
19
Years of Service
User Offline
Joined: 11th Jan 2005
Playing: AGK is my friend
Posted: 25th Jan 2016 02:06
I'm making a type of driving game a bit like rallyx was
now the car in the middle don't actually move the background does which is made up of several tiles
that part works well and it wraps around like its supposed to



what I'm unsure of is how I'm going to get collision to work
I have tried all the built in routines but none of them do what I want so I'm thinking
a colour picking routine which detects when the car is not on the road is what I was
planning but I'm unsure how I can get the car to bounce off the walls etc
I may have to redesign the background map yet

Any suggestions would be greatly appreciated
fubar
fubarpk
Retired Moderator
19
Years of Service
User Offline
Joined: 11th Jan 2005
Playing: AGK is my friend
Posted: 25th Jan 2016 02:11
The code for the movement is below


the main code is like this

there is 11 by 11 background tiles
fubar
fubarpk
Retired Moderator
19
Years of Service
User Offline
Joined: 11th Jan 2005
Playing: AGK is my friend
Posted: 25th Jan 2016 04:09
This piece of code detects collision and returns it to the last coord but not really the bounce and continue ide like



the code that color picks I found on the forum and is below
fubar

Login to post a reply

Server time is: 2024-09-29 09:26:27
Your offset time is: 2024-09-29 09:26:27