-=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- (c) WidthPadding Industries 1987 0|393|0 -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=-




waroffice

What Have You Done? - March 2013

27th March 2013

Ups
What did you get done this month.
[*]Started programming in GLbasic
[*]Got some tile maps
[*]and some collisions
Did everything turn out as planned?
GLBasic is impressive, I like how it works.
the coding of the RPG is coming along nicely, got co*snip*


waroffice

Rock solid tile map scrolling - knowledge gathering

27th March 2013

I have figured it out
It is looping through the map and rendering the player at every layer and every time a cell is rendered.
#iFail
I will fix it later


waroffice

Rock solid tile map scrolling - knowledge gathering

27th March 2013

I'm at work so can't test the theory out.
It could work I guess


waroffice

Rock solid tile map scrolling - knowledge gathering

27th March 2013

I submitted a post on the GLBasic forum for assistance
www.glbasic.com


waroffice

Baseball or Cricket or something...

27th March 2013

god dammit, I bet on Rooney to score in 90 mins and that England Serbia and Croatia would all win.
Just England let me down!


waroffice

Rock solid tile map scrolling - knowledge gathering

26th March 2013

I have updated the download if anyone wants a play
Latest build


waroffice

Rock solid tile map scrolling - knowledge gathering

26th March 2013

dammit...
(Image.png)
---
thats with loading a second set of tiles!


waroffice

Baseball or Cricket or something...

26th March 2013

everytime i watch it they lose or draw so i never do


waroffice

Rock solid tile map scrolling - knowledge gathering

26th March 2013

And it was going so well...
for some reason my sprites are not rendering in the right order.
If I load a different anim file will this be higher up the z order than the ones below?
for example I load in my tiles and player anims
[code]
LOADANIM "TILES*snip*


waroffice

Baseball or Cricket or something...

26th March 2013

Well done Rooney you just won me £10!


waroffice

Rock solid tile map scrolling - knowledge gathering

26th March 2013

Right thanks to Jay's intervention I can move around a map, its not 100% the effect i was after but it will do for now, I know I can solve that.
Now I have the collisions working too.
This is how I work it:
Each cell has an integer value to represent if*snip*


waroffice

Mad Macaw

26th March 2013

This may be relevant, slightly, ok it has a parrot in it
(Image.jpg)


waroffice

Learning With Monkey

26th March 2013

nobody said your games had to make sense!


waroffice

photography by me

25th March 2013

The area is close to my house and where I used to play as a kid.
United utilities are now renovating the water works near there hence the horrid green fencing.
Its farmland with horses etc now its a building site


waroffice

Rock solid tile map scrolling - knowledge gathering

25th March 2013

That did it, time for a shower.
Thanks


waroffice

SoCoder HD!

25th March 2013

its already happening, have a look on Steam's Greenlight


waroffice

Rock solid tile map scrolling - knowledge gathering

25th March 2013

[quote]PlayerX,PlayerY = Grid Reference
PlayerOX,PlayerOY = Offset.
So you have DrawX=(PlayerX*TileWidth)+(PlayerOX*TileWidth)-ScrollX
then you move PlayerOX-0.1, and when PlayerOX<-0.5 then PlayerOX=PlayerOX+1;PlayerX=PlayerX-1;
and pluses, and y'ses *snip*


waroffice

photography by me

25th March 2013

I took some more pictures
imgur.com


waroffice

SoCoder HD!

25th March 2013

yeah they are like 3D movie remakes amoungst all the othe remakes


waroffice

Rock solid tile map scrolling - knowledge gathering

25th March 2013

I use bit wise functions to store flags for each cell. Like if enemy can spawn. Collision data etc
I'm on my phone (picking misses up from gym) so difficult to find my code!


waroffice

Rock solid tile map scrolling - knowledge gathering

25th March 2013

oh I get you, I think I did this but in the reverse.
I started with the player being on a tile and controlling the offset but found it clunky and my brain couldn't handle it. This was a long time ago however so I guess I could switch back.
It really is *snip*


waroffice

Rock solid tile map scrolling - knowledge gathering

25th March 2013

That looks cool, I will apply the technique later tonight.
Not sure how it will apply to a guy moving around a map.
Some quick pseudo code.
[code]
Player presses RIGHT key
Set AIMx to CurrentX+1
PlayerX=PlayerX-((PlayerX-AIMx)/8) // Gradually move pl*snip*


waroffice

Rock solid tile map scrolling - knowledge gathering

25th March 2013

Thanks Dabz, I get that I could spend days/weeks/millennia creating an engine but since I started this project in 2001 im in no rush!
Jay, I think thats similar to what I have. Could you explain your variables and why you are doing things like the /8 et*snip*


waroffice

Rock solid tile map scrolling - knowledge gathering

25th March 2013

I have been doing tile map engines for years and every time I start one I managed to go through the same set of failures and successes.
What I would like is the communities advice on the maths involved in getting this correct and efficient.
What I have s*snip*


waroffice

World Of Play

24th March 2013

look at you with your logic and sense!
---
sounds good to me

Newer Posts More - Older Posts