The Daily Click ::. Forums ::. Klik Coding Help ::. Move Safely 2 Extension
 

Post Reply  Post Oekaki 
 

Posted By Message

lembi2001



Registered
  01/04/2005
Points
  608

VIP MemberIt's-a me, Mario!Wii OwnerI like Aliens!Has Donated, Thank You!PS3 OwnerI am an April Fool
7th July, 2011 at 14:12:34 -

Ok, something VERY weird has happend to the move safely extension.

I was quite happily building and testing my new engine when all of a sudden the Move Safely 2 Extension died!

I am using it to draw a line on screen that a player can walk across and it was working very fine. When i changed the names of some active objects and started adding groups and comments that's when it stopped working. Now even when i create a brand new app it fails. I have even tried to reinstall ext pack 1 which contains Move Safely 2 but this hasn't worked.

Very confused and stuck now!!

 
n/a

nim



Registered
  17/05/2002
Points
  7234
7th July, 2011 at 14:25:43 -

Define "died", "stopped working" and "it fails". You mean it doesn't respond to actions, or MMF crashes, or..? Sounds really weird if you've even tried reinstalling it and it still doesn't work.

 
//

lembi2001



Registered
  01/04/2005
Points
  608

VIP MemberIt's-a me, Mario!Wii OwnerI like Aliens!Has Donated, Thank You!PS3 OwnerI am an April Fool
7th July, 2011 at 14:28:55 -

Yeah it is really weird.

In my game you have to draw a line over obstacles and other such things. Initially in testing this was fine but when i started to tidy things up with groups and comments MMF2 would just hang as soon as you tried to draw the line. I have rebooted my machine reinstalled the extension and tried to setup the line drawing code only in an entirely seperate application. No joy unfortunately!

 
n/a

Hagar

Administrator
Old klik fart

Registered
  20/02/2002
Points
  1692

You've Been Circy'd!Teddy Bear
7th July, 2011 at 15:39:18 -

If I remember correctly the On Safety condition must be present in the collision detection code. I had a similar problem - if you stop the safety without it, MMF just hangs.


 
n/a

lembi2001



Registered
  01/04/2005
Points
  608

VIP MemberIt's-a me, Mario!Wii OwnerI like Aliens!Has Donated, Thank You!PS3 OwnerI am an April Fool
7th July, 2011 at 15:51:32 -

This is the code i have:

Start of Frame - add "Line Object" to protection with 1 pixel step
Repeat while Left Mouse Key is pressed - Commence Safety Procedure
On Safety
-Set Line Object XPos to XMouse
-Set Line Object YPos to YMouse
-Paste Line Object into Background as obstacle

That is all the code i have and MMF2 still hangs. I just don't get it

 
n/a

Akai_R



Registered
  16/04/2008
Points
  436
7th July, 2011 at 23:42:38 -

I don't really trust Move safely. I used it before to create a drawing app, when it just decided to stop working and I hadn't even changed anything.

You could use the Surface object for collision detection. There is a small example in its example folder for creating a drawing app with it.

 
______
http://akai-r.com/

lembi2001



Registered
  01/04/2005
Points
  608

VIP MemberIt's-a me, Mario!Wii OwnerI like Aliens!Has Donated, Thank You!PS3 OwnerI am an April Fool
8th July, 2011 at 08:38:16 -

Cheers Akai - I have just tried it and it works perfectly.

 
n/a

Akai_R



Registered
  16/04/2008
Points
  436
8th July, 2011 at 20:46:23 -

No problem!

 
______
http://akai-r.com/
   

Post Reply



 



Advertisement

Worth A Click