The Daily Click ::. Forums ::. Klik Coding Help ::. Grid movement, enemy collision question
 

Post Reply  Post Oekaki 
 

Posted By Message

Windybeard Games



Registered
  14/04/2005
Points
  219

You've Been Circy'd!VIP MemberCandy Cane
26th October, 2007 at 20:19:54 -

i dont really know how to do this efficiantly. basicly its a tile based rpg, the character moves acording to the grid (pokemon) and now i want the enemies to do the same, how do i go about creating collision detectors for a random amount of mobs without having an obscene amount of actives (my way is horrific, i wont even try and explain how im trying to do it)

if anyone could help me with this i would be very grateful.

Thx

(oh and why im at it, i cant seem to get a midi to play through MMF2 am i an idiot or is there somthing im missing, i never had this problem before with mmf 1.5)

Image Edited by the Author.

 
n/a

~Zigzag~



Registered
  13/03/2007
Points
  292

Game of the Week WinnerSilverNova Member
26th October, 2007 at 22:07:01 -

How are you using the midi? Play music?


 
http://www.SilverNova.co.uk

viva/volt

Awesome Sauce

Registered
  26/08/2006
Points
  1694

Game of the Week WinnerSilverNova MemberKlikCast StarVIP Member
27th October, 2007 at 02:22:19 -

The grid collisions, you could run a fastloop and use the collision mask command to check for blocks (using box detect mode)?

 
Image
http://bfollington.tumblr.com

~Zigzag~



Registered
  13/03/2007
Points
  292

Game of the Week WinnerSilverNova Member
27th October, 2007 at 03:15:50 -

I tried to make a grid engine once using detectors... It didn't end well...

for Atlantis...

 
http://www.SilverNova.co.uk

\/\/olf

Creative Genius

Registered
  06/08/2005
Points
  76

VIP Member
27th October, 2007 at 04:56:38 -

how to you make the grid system? i mean which extension do you use?

 
Image

www.OldMansTale.net
Sign the Petition! Go go Go!!

Windybeard Games



Registered
  14/04/2005
Points
  219

You've Been Circy'd!VIP MemberCandy Cane
27th October, 2007 at 16:57:46 -

@wolf - im not using an extension

@benothy - i have no idea what that means

@zigzagothy - ive tried everything. play music, play sample, the only way i can do it is to convert it to mp3 and then use some weird X object to load the track at the start of the game. (which isnt good)

Thx

 
n/a

Windybeard Games



Registered
  14/04/2005
Points
  219

You've Been Circy'd!VIP MemberCandy Cane
27th October, 2007 at 17:14:21 -

The midi problem is really annoying me, how do play a midi in mmf2, i was sure it was just "play music" but its not working, anyone got any ideas

 
n/a

~Zigzag~



Registered
  13/03/2007
Points
  292

Game of the Week WinnerSilverNova Member
27th October, 2007 at 19:49:46 -

Well fast loops are under the same heading as 'Always' (Special) but work much faster, almost instantaneous & collision masks are under Storyboard events (where Start of Frame is).

@Benothy: Won't collision masks affect all enemies?

If you use Play Music you sometimes have to identify what sort of file it is...
Do you have an mfa we could see?

Image Edited by the Author.

 
http://www.SilverNova.co.uk

Windybeard Games



Registered
  14/04/2005
Points
  219

You've Been Circy'd!VIP MemberCandy Cane
27th October, 2007 at 20:24:17 -

cool, ill try the collision masks, and whats an mfa? its just this midi problem is so weird, ive made plenty of little games before and none have had this problem, its usually a case of choose music and off it goes.
they play fine from the desktop its just mmf wont run them

now im having to convert my midi's to mp3 and use the crappy direct show object to play any music.

Image Edited by the Author.

 
n/a

viva/volt

Awesome Sauce

Registered
  26/08/2006
Points
  1694

Game of the Week WinnerSilverNova MemberKlikCast StarVIP Member
28th October, 2007 at 01:21:46 -

An mfa is the new format like cca and gam. With the collision masks you need to (for example) say:

Always: Spread 0 in Alt value A enemy

Always: Start loop "checkenemy" NObjects("Enemy") times

On loop "checkenemy" + Alt Val A enemy = Loopindex("checkenemy") + Collision Mask (x,y) is NOT an obsticle: Move

(x being enemy x + grid value + 1/2 grid value and y being y enemy, then that will check the square to the right. You'll need 4 different conditions like that.)

There.. Hope that sorta makes sense, also I've never had any MIDI issues with MMF2, but I use OGG's mostly, and MOD's

Image Edited by the Author.

 
Image
http://bfollington.tumblr.com

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
28th October, 2007 at 07:24:04 -

^^ What he says makes sense, it's just that it's not going to be an easy fix for what you want to do Antworx. ^^

Hey, where's my Dreams of Eternity? I've been waiting for that since the end of 2005!

 
--

"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!

Windybeard Games



Registered
  14/04/2005
Points
  219

You've Been Circy'd!VIP MemberCandy Cane
28th October, 2007 at 20:56:12 -

Cool, ill have a go at that, but i still cant get any midis playing, im getting seriously vexed, im gonna smash the keyboard straight into my face! GRRRR

I can run mods, wavs, mp3 etc but no mods, weirdly, all old projects no longer run the midis they used to run, even when i check my old MMF1.5 projects. If anyone can solve this problem or have an insight as to what the hell is going on i will be forever in your debt. PLEASE PLEASE PLEASE!

Image Edited by the Author.

 
n/a

Joe.H

Evil Faker

Registered
  19/08/2002
Points
  3305
28th October, 2007 at 21:35:12 -

normally there should be settings somewhere, which let you play midis and stuff, or disable them.

Check to see if it's disabled.

 
My signature is never too big!!!

Windybeard Games



Registered
  14/04/2005
Points
  219

You've Been Circy'd!VIP MemberCandy Cane
28th October, 2007 at 22:13:20 -

i just sorted it, somhow i had managed to turn SW synth down on my windows master volume controls, i turned it up and everyones a winner!

 
n/a

~Zigzag~



Registered
  13/03/2007
Points
  292

Game of the Week WinnerSilverNova Member
29th October, 2007 at 04:26:09 -

Yay! We R Weiners!

 
http://www.SilverNova.co.uk
   

Post Reply



 



Advertisement

Worth A Click