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.

2D All the way! / Grids

Author
Message
Chaos
19
Years of Service
User Offline
Joined: 8th Feb 2003
Location: United Kingdom
Posted: 20th Mar 2003 22:14
How do i make a Grid

Ok im going back to basics im going to creat a simple 2d game. Only i need to know how make a grid and to scroll
thanx in advance
Darkworlds are all around us just open your eyes
Most of us are still half asleep
IanM
Retired Moderator
20
Years of Service
User Offline
Joined: 11th Sep 2002
Location: In my moon base
Posted: 20th Mar 2003 23:07
Do you mean like in the '2D Tile Displaying' a few posts below?
Chaos
19
Years of Service
User Offline
Joined: 8th Feb 2003
Location: United Kingdom
Posted: 21st Mar 2003 11:29
Sorry i should have said it more clearly wot i ment was how do i put an image in the backgound and make it so when my sprite hits a certain color in the image it stops.

DBC by the way

Thanx in advance

Darkworlds are all around us just open your eyes
Most of us are still half asleep
IanM
Retired Moderator
20
Years of Service
User Offline
Joined: 11th Sep 2002
Location: In my moon base
Posted: 21st Mar 2003 22:20
There is no easy way.

One way would be to use the POINT function to check the colours under your sprite.

If the non-collision areas of your backdrop are coloured black and you can treat all colours as collisions, you can use GET IMAGE to capture the pixels under your sprite, set the new image up as a sprite at the same point, check for collisions between them and then hide your new sprite.
Chaos
19
Years of Service
User Offline
Joined: 8th Feb 2003
Location: United Kingdom
Posted: 21st Mar 2003 23:35
Can you explain in easier terms. I am only just starting out in 2d mostly 3d projects so far.

Darkworlds are all around us just open your eyes
Most of us are still half asleep
Khumba
20
Years of Service
User Offline
Joined: 1st Sep 2002
Location:
Posted: 5th Apr 2003 03:55
You could create a sprite for a character, then create sprites for walls, then check to see if the character has run into the walls by going:
SPRITE COLLISION(character sprite number, 0)
or for a specific wall:
SPRITE COLLISION(character sprite number, wall number)

Login to post a reply

Server time is: 2023-02-04 21:23:36
Your offset time is: 2023-02-04 21:23:36