The Daily Click ::. Forums ::. Klik Coding Help ::. Help with Mode 7 extention
 

Post Reply  Post Oekaki 
 

Posted By Message

Disthron



Registered
  08/02/2005
Points
  1101

VIP Member
23rd February, 2009 at 20:18:58 -

Hi everyone

I've been trying to follow this Mode 7 tutorial through but I can't seem to get it to work. I can get as far as the part where you sprite map the player sprite in front of the camera but I can't get that to work. I thought of just having the player sprite just in the centere of the screen but the problem remains for the enemies (or anything else for that matter).

So I know there are a few people with experience with this extension. I was wondering if you could help me out. Here is a link to the tutorial that I was going by.

http://www.create-games.com/article.asp?id=1309

I guess the theory seems sound but almost nun of the actual syntax is strictly correct. Fore instance in the place where you are supposed to sprite map the player sprite to in front of the camera it has this.

>always
-set X position of player sprite to GetmapXZ( X(real player)-(X size of window), Y(real player))
-set Y position of player sprite to GetmapYZ( X(real player)-(X size of window), Y(real player))

However GetmapXZ and GetmapYZ have 3 peramiters, not 2. Also, I don't know where "X size of window" is to be found. There is a Frame Width, Virtual Frame Width, X Position of Left side of the screen. Sorry but I'm really stuck here. I wont to incorporate this into my HE engine and my game but it's not being very cooperative.

Anyway, here is a download link to what I have done so fare. Agen, I'd really appreciate any help. O.o
http://files.filefront.com/HE+Aplication+13zip/;13351651;/fileinfo.html

 
"Oh, my god! A lightning monster just ripped out this poor woman's eyes, and your mocking her shrubbery!" - The Spoony One

Del Duio

Born in a Bowling Alley

Registered
  29/07/2005
Points
  1078

GOTW WINNER CUP 1!GOTW WINNER CUP 2!GOTW WINNER CUP 3!GOTW WINNER CUP 4!Evil klikerHasslevania 2!The OutlawSanta Boot
23rd February, 2009 at 20:26:12 -

Hmmm... I know you can get the X size of the current window somehow as the width of the actual screen (and not frame). Try using the Window Object or whatever it's called and see if that works.

 
--

"Del Duio has received 0 trophies. Click here to see them all."

"To be a true ninja you must first pick the most stealthy of our assorted combat suits. Might I suggest the bright neon orange?"

DXF Games, coming next: Hasslevania 2- This Space for Rent!

Disthron



Registered
  08/02/2005
Points
  1101

VIP Member
24th February, 2009 at 15:30:20 -

It's not just that though. There is a hole bunch of stuff that I can't seem to get working.

 
"Oh, my god! A lightning monster just ripped out this poor woman's eyes, and your mocking her shrubbery!" - The Spoony One

AndyUK

Mascot Maniac

Registered
  01/08/2002
Points
  14586

Game of the Week WinnerSecond GOTW AwardHas Donated, Thank You!VIP Member
24th February, 2009 at 18:05:33 -

i have an extremely good tutorial somewhere, give me a moment to upload it somewhere.

http://www.mediafire.com/?sharekey=beab98d005e9ee036e7203eb87368129e04e75f6e8ebb871
Credit goes to Firemonkey for this.

It's a MMF1.5 cca file but opens fine in my copy of MMF2.
The tutorial uses some advanced formula to map 2d sprites to the mode 7 race track which should be really helpful to you.
To be honest a lot of it is right over my head but I'm sure with a little patience anyone can understand whats going on.

If you're wondering how the ai car is actually moving, it's using path movement (took me ages to work that out lol)

 
.
   

Post Reply



 



Advertisement

Worth A Click