Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

teks tileengone 3 problem (again)

Status
Not open for further replies.

kuja

Programmer
Jan 12, 2003
7
GB
okay i still have this problem with teks tile engine 3.how can i make the character do something when he goes on a particular tile? please no answers like if playerx = ....
then do action coz i know about collision and reading what tile a character is on etc.please be specific to teks tile engine 3 and that one only coz i can't figure out how to detect if the player is on a certain tile atall.....please help!!!!!
 
if you cannot assimilate the code into your engine, maybe you need to do more research on how to code engines. i simplified the code as much as possible. i would suggest this site.


i would also suggest tek's tutorials and darkdreads.

it may take time to learn how to program fully, but it also takes even more time to actually do the programming. create your own engine. that's what i did. if you want, i could send you my engines, as they work very well. there's only a little bit of flickering.

programming an rpg takes time, as it's something you can't rush. talk to me, and i will help you. i'm studying tek's engine right now, and will help you as much as i can. e-mail me at

marshall_7ca@yahoo.ca

talk to you later.
 
okay. i looked at the code. it seemed alright. the collision is good. i tested the code. it worked good.

about doing special things when you get on a special tile. put this in all of the move subs.

sub specialevent
'this sub checks whether you step on a certain tile. in
'this demo, you step on certain tile coordinates, it turns the screen black, but all you can see is the player. when
'you move again, it turns the screen visible again.

if map(worldData.toprow, worldData.topcol) = map(3,6) then

'this checks if you step on those special spots. if you
'want something different (stepping on tile 6 or 7, or
'whatever, scroll to the -----'s...
cls

putplayerpic
endif

'---------------------------END---------------------------



'now, if you want to step on a certain tile that drains hp,
'for example, here's what you should put.

subspiketile

if map(worlddata.topcol, worlddata.toprow).tile = 6 then

'say the number 6 is the "spike tile." if the players
'coordinates equal that special tile, then it drains hp.


mainplayerhp = mainplayerhp -100
endif

endsub

'please note that i made this on the fly. if some of the
'code is wrong, don't accuse me of giving you false code.
'just fix it up. Often all it is is a missing ENDIF, or
'maybe THEN. The qb editor will tell ya ;) PLEASE e-mail
'me and tell me more about your game. i can help you. if
'you don't want my help, then i could give you the e-mail
'addresses of friends that are expert game programmers,
'like Darkdread, or Tenshi or them.


PLEASE REPLY. I NEED YOU TO REPLY SO I CAN HELP YOU>
 
cheers for all your help.ill have a fiddle about with the code n what u said and then post when ive got things sorted out.i will need your help in getting the main engine test-bed thing done but once that's done ill be fine.
cheers!
 
don't post what you have. it'll be too massive. just post a message that if anyone wants to see a demo, e-mail you, and you can e-mail it to them. download a version of winzip and zip your code. then attach it to an e-mail it and e-mail it... to me!!
 
go to these sites and sign up. there are people whom will help you with anything.


this is a brand new site, but already it's flourishing. basically, this site is about making rpg's in any language. same with this next site. please sign up for both.


this site is an astounding example of member support. this site was going to close down due to costs, but everyone whom was registered to this site (and some whom wasn't) offerred to help. in the end, the site was moved.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top