The Daily Click ::. Forums ::. Klik Coding Help ::. I'm stumbling over several simple tutorials, please correct me?
 

Post Reply  Post Oekaki 
 

Posted By Message

Izaak



Registered
  12/10/2012 08:03:03
Points
  4
12th October, 2012 at 12/10/2012 10:56:56 -

Hello there. I'm a new poster here.

I mainly registered on this website because I need MMF2 related advice. I've been testing several MMF2 examples and I'm having problems with Chaos' Snakes tutorial. I copied the code exactly, even modeled my sprites after it. But to no avail; the Snake Head still jumps around when it turns, and the Snake Body lags behind by one grid.

Please help me?
ge.tt/api/1/files/19nFaNP/0/blob?download

 
n/a

nivram



Registered
  20/07/2006
Points
  171
12th October, 2012 at 12/10/2012 14:34:10 -

It would be best if you posted your mfa file so someone can trouble shoot what is happening.

Marv

 
458 MMF2 & CTF 2.5 examples and games

http://www.castles-of-britain.com/mmf2examples.htm

s-m-r

Slow-Motion Riot

Registered
  04/06/2006
Points
  1078

Candle
12th October, 2012 at 12/10/2012 14:48:40 -

I tried to download your example file but it just redirected me to the Verizon front page.

From what you're describing here, I suspect your Action Points and Hot Spots are a bit off. This is the "center" of the Active Object; it basically orients everything around the Action Point, including rotations (which likely needs to happen when moving the snake through the grid).

I'd try moving the Action Points to the center of the segments of the snake, and see if that helps at all. Meanwhile, if you can figure out how to share your example that would be helpful.

 
n/a

Sketchy

Cornwall UK

Registered
  06/11/2004
Points
  1970

VIP MemberWeekly Picture Me This Round 43 Winner!Weekly Picture Me This Round 47 WinnerPicture Me This Round 49 Winner!
12th October, 2012 at 12/10/2012 14:57:37 -

You just need to fix the hotspots on the snake head object - they need to always be in the top-left corner. At the moment, they move depending on which direction the head is facing.

EDIT: S-M-R beat me to it

Edited by Sketchy

 
n/a

Izaak



Registered
  12/10/2012 08:03:03
Points
  4
12th October, 2012 at 12/10/2012 15:23:35 -

Where can I actually post my mfa file? Is there an option on this forum? That would greatly help for future posts!

Edit: Finally tried out the advice and it worked! Thanks everybody! Now I can get on with my project.

Edited by Izaak

 
n/a

s-m-r

Slow-Motion Riot

Registered
  04/06/2006
Points
  1078

Candle
12th October, 2012 at 12/10/2012 15:38:13 -

I simply did an Internet search for "free web hosting":

http://www.free-webhosts.com/

You should be able to find a current rating and more details on how to have someone host your files for others to use.

 
n/a

Sketchy

Cornwall UK

Registered
  06/11/2004
Points
  1970

VIP MemberWeekly Picture Me This Round 43 Winner!Weekly Picture Me This Round 47 WinnerPicture Me This Round 49 Winner!
12th October, 2012 at 12/10/2012 15:44:10 -

Just for the record, I didn't have any trouble downloading the file...

 
n/a

s-m-r

Slow-Motion Riot

Registered
  04/06/2006
Points
  1078

Candle
16th October, 2012 at 16/10/2012 16:33:15 -

Yeah, it must have been a one-time fluke or whatever, on my end. I was able to download the example after another go at it.

 
n/a

Izaak



Registered
  12/10/2012 08:03:03
Points
  4
20th October, 2012 at 20/10/2012 17:30:38 -

Hope this works again.
ge.tt/api/1/files/5YBa7tP/0/blob?download

Here's my attempt at the second example. Now I'm perplexed on why it dies when it tries to turn south when it comes from the east. Nevermind about why its not eating the dot, I'm more worried about the direction problems.

 
n/a
   

Post Reply



 



Advertisement

Worth A Click