The Daily Click ::. Forums ::. Klik Coding Help ::. Coding Eureka, At Least for me it is...
 

Post Reply  Post Oekaki 
 

Posted By Message

Kai Proton



Registered
  31/01/2005
Points
  201

Wii Owner
22nd June, 2015 at 22/06/2015 22:54:19 -

All my coding days with TGF and MMF and now with Fusion2.5 I would check values like this :

y positon of Active1 >=150

I just found out that if you dont do it direct and use COMPARE TWO GENERAL VALUES
it becomes

Y("Active1") >= 150

it seems like a small change, but if I'd coded like that from the beginning of my Game, now Im copying the controls for Player2
All those Direct Checks Cannot be Edited, but must be Replaced, If Id used compare two General, then I could of just edited and renamed the items via the strings....


I cant believe ive used the software so long and never seen this before, it Even works with FLAGS

so, anyone else do this? and what problems am I going to Face, I feel like a bit program crash or Slowdown maybe on the cards..



 
----------------------
Time for a Sexy Party!
----------------------

Sketchy

Cornwall UK

Registered
  06/11/2004
Points
  1971

VIP MemberWeekly Picture Me This Round 43 Winner!Weekly Picture Me This Round 47 WinnerPicture Me This Round 49 Winner!
22nd June, 2015 at 22/06/2015 23:13:38 -

If there are more than one instance of "Active1", everything will break.

The best solution would be to make "Player1" and "Player2" two instances of the same "Player" object - or to use a qualifier. Then you don't even need to duplicate the events in the first place.

 
n/a

Kai Proton



Registered
  31/01/2005
Points
  201

Wii Owner
23rd June, 2015 at 23/06/2015 09:59:27 -

I think I did come across that one, I use Groups to reference objects for now,
as Im making a game with the ability to choose different characters,
so the characters are global, and belong to groups, so I reference them that way, nothing has broken so far (fingers Crossed)

 
----------------------
Time for a Sexy Party!
----------------------

Hagar

Administrator
Old klik fart

Registered
  20/02/2002
Points
  1692

You've Been Circy'd!Teddy Bear
23rd June, 2015 at 23/06/2015 17:43:48 -

What Sketchy says makes life a lot easier. I generally create one engine, with controls set via flags or alterable values for digital and analogue controls respectively.

This makes it easy to duplicate many of the same object and tie the control to either keyboard, joypad etc or some "AI" code.

 
n/a

Kai Proton



Registered
  31/01/2005
Points
  201

Wii Owner
23rd June, 2015 at 23/06/2015 19:42:55 -

I get it now, I re-read,

I have done it the way Sketchy said, but I didnt have the foresight to use it with flags for the controls so that will make My AI section more difficult to write....

Maybe I will end up re-writing the code for that type of interface,


 
----------------------
Time for a Sexy Party!
----------------------
   

Post Reply



 



Advertisement

Worth A Click