The Daily Click ::. Forums ::. Klik Coding Help ::. Dynamic Lighting?
 

Post Reply  Post Oekaki 
 

Posted By Message

vetmora120



Registered
  07/01/2010
Points
  273
23rd August, 2010 at 13:30:31 -

Hello everyone, I'm wondering whats the easiest/simplest way of achieving a similar resault to 'Anders Riggelsens Light and shadow engine 4', without having to use the ForEach.mfx or Multimedia Fusions HWA.

Thanks

 
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!
23rd August, 2010 at 13:46:25 -

There is no method that is even remotely easy/simple.
Maybe you could try one of the older versions of that engine - they used normal fastloops instead of the ForEach extension, and didn't require HWA.

 
n/a

vetmora120



Registered
  07/01/2010
Points
  273
23rd August, 2010 at 13:50:47 -

I thought this was the case. Do you know where I would be able to find an older version??

 
n/a

vetmora120



Registered
  07/01/2010
Points
  273
23rd August, 2010 at 13:55:16 -

Don't worry I've found them.

 
n/a

vetmora120



Registered
  07/01/2010
Points
  273
23rd August, 2010 at 14:47:59 -

I have another question. In his particular example, he uses 32 directions to rotate the light. Is it possible to make it rotate with 360 degree directions? I've tried this and it works on the actual light object, just doesn't seem to apply it to the Overlay object... Any help would be appreciated.

Also is there any way to get the Overlay to follow the player for larger levels? Without this lagging? I don't know if this is possible.

The following link is the exact version I'm referring to.
http://andersriggelsen.dk/files/examples/ShadowEngine2.mfa

Thanks, Vetmora

 
n/a

Johnny Look

One Happy Dude

Registered
  14/05/2006
Points
  2942

VIP Member
27th August, 2010 at 13:33:54 -

Just a question, why don't you use the For Each object and the MMF2 HWA ?
As far as I know they are both free to download.

 
n/a

Silveraura

God's God

Registered
  08/08/2002
Points
  6747

Game of the Week WinnerKlikCast StarAlien In Training!VIP Member360 OwnerWii OwnerSonic SpeedThe Cake is a LieComputerChristmas Tree!
I am an April Fool
27th August, 2010 at 19:12:55 -

HWA is next to impossible to figure out a negitive reason to use it, aside perhaps for the fact that it cannot be installed on warezed copies of MMF2.
Uh oh.

 
http://www.facebook.com/truediamondgame

OMC

What a goofball

Registered
  21/05/2007
Points
  3516

KlikCast Musician! Guy with a HatSomewhat CrazyARGH SignLikes TDCHas Donated, Thank You!Retired Admin
27th August, 2010 at 19:59:19 -

HWA applications don't like my semi-old computers, and some projects don't port well into HWA.

Two reasons, at least.

 

  		
  		

UrbanMonk

BRING BACK MITCH

Registered
  07/07/2008
Points
  49566

Has Donated, Thank You!Little Pirate!ARGH SignKliktober Special Award TagPicture Me This Round 33 Winner!The Outlaw!VIP MemberHasslevania 2!I am an April FoolKitty
Picture Me This Round 32 Winner!Picture Me This Round 42 Winner!Picture Me This Round 44 Winner!Picture Me This Round 53 Winner!
27th August, 2010 at 22:36:00 -

Even if you don't use HWA you should definitely use the for-each object. It's significantly faster than loops when objects are involved.

 
n/a

Jon C-B

I create vaporware

Registered
  23/04/2008
Points
  237

I'm an alien!VIP MemberWii OwnerI donated an open source project Santa Hat
27th August, 2010 at 22:50:27 -

What is the for each object?

 
n/a

UrbanMonk

BRING BACK MITCH

Registered
  07/07/2008
Points
  49566

Has Donated, Thank You!Little Pirate!ARGH SignKliktober Special Award TagPicture Me This Round 33 Winner!The Outlaw!VIP MemberHasslevania 2!I am an April FoolKitty
Picture Me This Round 32 Winner!Picture Me This Round 42 Winner!Picture Me This Round 44 Winner!Picture Me This Round 53 Winner!
27th August, 2010 at 23:09:53 -

http://www.clickteam.com/epicenter/ubbthreads.php?ubb=showflat&Number=186462#Post186462

Always check:
http://clickteam.com/epicenter

for new extensions and stuff.

 
n/a

vetmora120



Registered
  07/01/2010
Points
  273
28th August, 2010 at 01:12:17 -

Comments, comments, comments! What Silverfire said, doesn't work on warezed copies... I'm poor and don't have an official version D: I'm sorry I'll buy it as soon as I can!

 
n/a

Pixelthief

Dedicated klik scientist

Registered
  02/01/2002
Points
  3419

Game of the Week WinnerWeekly Picture Me This Winner!You've Been Circy'd!VIP MemberI like Aliens!Evil klikerThe SpinsterI donated an open source project
28th August, 2010 at 03:29:47 -

Ross P can shoot me if he wants, but seriously theres *no* harm in letting someone use the extensions. Though do please get an official copy from clickteam soon! But yeah, here, put these in your MMF2 folder:
https://sites.google.com/site/claniraq/stuff/ForEach.zip?attredirects=0&d=1

The foreach object is powerful in that it can let you do some manipulations of the object scope list in O that otherwise would take O(N^2) time over a list of N objects of the same class. But at the same times, its unfortunately a bit counterintuitive and buggy in how it executes its looping (it won't preserve the stack frame, and finishes executing the line of events before it starts the loop instead of breaking the line, going through the loop, and returning, like virtually all other loop/function/etc in MMF2)

Hope this helps explain some coding mysteries!

 
Gridquest V2.00 is out!!
http://www.create-games.com/download.asp?id=7456

vetmora120



Registered
  07/01/2010
Points
  273
28th August, 2010 at 03:58:49 -

Thanks heaps fellow TDC member! I can now finally do stuff, lol.

 
n/a

vetmora120



Registered
  07/01/2010
Points
  273
28th August, 2010 at 05:26:41 -

Why does it look like this?

http://ajrg.penscribbles.com/games/lightandshadow.jpg

And how can I get it to look like what I had before?

http://ajrg.penscribbles.com/games/Test2.exe

I should probably stop posting and annoying people, hey...

 
n/a

Johnny Look

One Happy Dude

Registered
  14/05/2006
Points
  2942

VIP Member
28th August, 2010 at 16:08:13 -

I'm guessing that's because you are not using mmf2's HWA version, which you can't because your copy is illegal.
Tough luck, I guess you'll have to buy a legal copy, just like everyone else. They don't hand over free copies of mmf2 for some reason, you are supposed to pay for it. If you can't afford it there are several free solutions similar to mmf2 like Construct, GameMaker etc.. Not to sound like an asshole, but I don't think anyone here is wealthy, and if you have money for a computer and an internet connection it's not like you live in actual poverty so that's no excuse at all.

 
n/a

Silveraura

God's God

Registered
  08/08/2002
Points
  6747

Game of the Week WinnerKlikCast StarAlien In Training!VIP Member360 OwnerWii OwnerSonic SpeedThe Cake is a LieComputerChristmas Tree!
I am an April Fool
29th August, 2010 at 05:15:59 -


Originally Posted by Pixelthief
Ross P can shoot me if he wants, but seriously theres *no* harm in letting someone use the extensions. Though do please get an official copy from clickteam soon! But yeah, here, put these in your MMF2 folder:
https://sites.google.com/site/claniraq/stuff/ForEach.zip?attredirects=0&d=1

The foreach object is powerful in that it can let you do some manipulations of the object scope list in O that otherwise would take O(N^2) time over a list of N objects of the same class. But at the same times, its unfortunately a bit counterintuitive and buggy in how it executes its looping (it won't preserve the stack frame, and finishes executing the line of events before it starts the loop instead of breaking the line, going through the loop, and returning, like virtually all other loop/function/etc in MMF2)

Hope this helps explain some coding mysteries!



If an extension requires validation of your copy of MMF2 such as in the bonus packs, it's illegal to distribute them in any other way. With that said, I hope your link isn't providing him with something otherwise unobtainable with his copy of MMF2.

 
http://www.facebook.com/truediamondgame

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!
30th August, 2010 at 13:16:51 -

The problem with something like MMF2, is that it appeals to kids/teens, and while their parents may have money, it doesn't necessarily follow that the kids do too (some parents are just really tight) and MMF2 is not cheap.

Obviously you could say that about a lot of things, but with Clickteam products, I think it's a little different in that kids who use pirated copies to begin with, will actually pay for genuine copies of future products when they have the money.
Personally, I used the 30-day demo of TGF1 for about 2 years (just kept turning back the clock on the computer), but started buying legit copies thereafter.

A lot of people have argued that Clickteam should release a free version with limited features, and in a way, I guess a pirated copy of MMF2 is just that.

 
n/a

OMC

What a goofball

Registered
  21/05/2007
Points
  3516

KlikCast Musician! Guy with a HatSomewhat CrazyARGH SignLikes TDCHas Donated, Thank You!Retired Admin
30th August, 2010 at 14:17:14 -

Piracy is still piracy though.

It's best not to admit you've done it, at the very least.

 

  		
  		

Marko

I like you You like you

Registered
  08/05/2008
Points
  2804

Has Donated, Thank You!Game of the Week WinnerVIP Member360 OwnerDos Rules!Happy FellahCrazy EvilI am an April FoolGingerbread House
30th August, 2010 at 21:28:30 -

Haha, all this talk of piracy being bad just smacks of a little hypocracy. Sure, i know it's wrong and we should never encourage it, and i no longer feel the need to partake in it now i earn a living, but as a kid i did it like it was free (ell, it was i guess!) and i bet most of us on here have done it somewhere along the line (forgive me if you haven't ever, but seriously keep looking, i bet you broke some copyright laws somewhere down the line!)

Let's give the kids a break and nurture their desire to use MMF! Perhaps Clickteam should get in on the act and do more to get kids on tight budgets interested in their products!

And as OMC said, don't go shouting about it if you do pirate stuff!

 
Image

Subliminal Dreams. . ., daily gaming news and the home of Mooneyman Studios!
www.mooneyman-studios.webs.com

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!
30th August, 2010 at 23:23:36 -

Yeah, I'm pretty sure everyone over the age of about 20, has taped songs off the radio (or maybe made a mix tape for their girlfriend ), if nothing else.

OMC's probably right that it's not particularly smart to tell everyone you're using pirated software, though - and just so you know, if Clickteam happen to come across a file you uploaded somewhere, they CAN tell if it was made using a copy you got off the internet.
Plus it's breaking TDC Site Rule #1 - as is this very post, come to think of it...

 
n/a

Silveraura

God's God

Registered
  08/08/2002
Points
  6747

Game of the Week WinnerKlikCast StarAlien In Training!VIP Member360 OwnerWii OwnerSonic SpeedThe Cake is a LieComputerChristmas Tree!
I am an April Fool
31st August, 2010 at 00:23:03 -

I just turned 20 a couple months ago and even I was taping songs off the radio.

 
http://www.facebook.com/truediamondgame

Hagar

Administrator
Old klik fart

Registered
  20/02/2002
Points
  1692

You've Been Circy'd!Teddy Bear
3rd September, 2010 at 14:21:40 -

Typical off topic reply from me : Mix tapes, that takes me back. I find cassetes oddly charming for some reason and my car still has a cassette/FM radio .

 
n/a
   

Post Reply



 



Advertisement

Worth A Click