s = ut + 1/2 at^2
Type: Posts; User: raytrace; Keyword(s):
s = ut + 1/2 at^2
I've managed to find a suitable answer:
Register "raweval" in MMF2
On "raweval" Run string "e = " + MMF2StringParameter(1)
And in lua..
I'm trying to find a way of doing the same in lua. I've tried...
:O wow! thanks never found these before
Lua+ doesn't seem to have any support for the core libraries such as "math" and "table" which pretty badly flaws my lua code. I was wondering if there was any way to incoorperate the libraries or...
One problem I found with the RTF object was that you have no control over what the users can put in the box. I tried to create a syntax colouring tool for lua but it quickly became pointless - users...
"Advanced Path Movement" Object ;)
I know of a pathfinding object i once downloaded which calculated paths using lines and nodes that were actually drawn invisibly on the frame. This would mean you could create a hexagonal lattice of...
I don't think MMF2 allows multi-threading or whatever
I would like to know whether Clickteam is planning to allow multiple pixel shaders in the future
Are there any string objects that can work with rich text with a transparent background?
As RaiKitsune said the Formatted String Object doesn't seem to be functioning anymore and there doesn't...
considering MMF2 already creates its own 'frame' or image as such it would be nice to incoorperate "draw pixel" and "draw line" etc. features direct into the Frame, as overlay creates its own image...
When i try running a built .jar file I get the message "Cannot find main class." Any suggestions? Do I need to get a more recent VM?
thats my exact tactic when making games!
What I would do if I was you would be to keep your object scripts and level (etc.) scripts external just like you said but use MMF2 to as a rendering...
"only once when action loops"
will do for starters
Usually if an error is occuring the object is going to be pretty useless anyway so you might aswell destroy it.
I'm trying to Live Reciever to work though considering i'm already using it in the program and it is supposed to work and ultimately it is simpler than MooSock
I'm trying to use POST because it's the standard and GET has a character limit
Yea I guessed thanks but it doesn't really do much in Live Reciever
p.s. what's "der" - erutangis
[quote]load objects in -50 pixels of the screen?[quote]
This is the most powerful solution but takes a considerable amount of coding
Try setting the "number of objects" in the frame properties...
I am having problems getting the POST function to send the POST data / the PHP file recieve the data.
The PHP file doesn't seem to pick up the values. Example:
I'm just trying to find a method of releasing code open source without people taking the same code and rebranding it or selling it.
I think what would probably be the easiest option is to...
just a reminder -
all global strings don't hav $s
try destroying the direct show object before switching frame and see if that makes a difference
Heya - one thing -
Can I license code in .mfa files under Creative Commons without breaking the MMF2 runtime agreement?
Link to License
I think any zoom feature would be useful although how could you enforce a vertex shader when MMF2 uses raster images?
Too well, too well :/
Personally, what I think would be most innovative would be to redesign the Event Editor not as table based interface but as a flow diagram interface which is much more natural for coders as one can...
If you're talking about "/index.html" returning a ghost web page, I tried it with a load of other domains and it returns the same sort of thing.
When dealing with map loading I think the best equations to use are:
number_of_tiles = level_width*level_height
start loop "draw" (number_of_tiles) times
on loop "draw"
set draw x to:...
Ps. I got the file to work using "http://feryl.org/devcentre/" but this takes over 5 seconds to load!! Any ideas?
I've come into problems with getting the information out of PHP files. I've tried both the Live Reciever and MOO Sock and I get the same result. The file I'm trying to access is:
If an MMF3 would be developed I think it would be great to try and incoorperate some of the hierarchical structure of some of the languages such as java and C++ whilst keeping the concept of drag and...
At a glance, it might work if you replace "Space Invaders.ccn" with "Space%20Invaders.ccn"
just checking ;)
I've now got a full blown application to work in a web browser!! - the screen size and window size values have been ported seamlessly :D well done!
Heya - have I missed something or are the following vitalized?
use proportional difference:
New Angle = Old angle + ( Direction of player - Old angle ) / Coefficient
Where 1 ≤ coefficient ≤ about 10
its called the pipe object
ah ok its ftp. That means you're probably talking about file permissions on a unix based system. You can use the unix command CHMOD to change permissions but you cant do this on the windows system....
The windows file permissions can be set using the CACLS command in the cmd (you can use the pipe object), but I don't think that is the problem in your case. What generates the permission error?
:crazy: It may be the truth, but it is not the only way to say it. If you came upon an injured person, you wouldn't just lie and tell them that they were "fine", no. But would you merely stand above...
Set the "selected line" to 0 and optionally "lose focus" aswell.
Wow! this is just what I was in need of. The last Lua was a bit buggy.
Have a little problem here.
I wanted to make a basic Lua Console so I could learn the language easier. I used the code:
print = function(...)
use the "iconview" object
p.s. avi isn't an audio hehe :P
Which means the file doesn't exist so the file can't be deleted
I introduce to you Alpha Channelling!!!
take the easy option: use global values :)
hehe dont worry. What do you mean my "logging in" - Are you using Moo Click? If you are then set up a "system" hidded sub application which is always running. When opening new windows just log into...
Using a text file is much more powerful and flexible as contents can be controlled however you like :)
Capture it in the frame (whilst it is hidden behind a popup etc.):P
This case only ever seems to happen if you are displaying a popup message
Does anyone know any PHP... that actually works?!?
I've tried countless tutorials, uploaded them to PHP-allowing hosts but none of them every seem to work :( :(
lol :D Mac can't run executables so you would be making a completely different program in which everything is different.
You know how to work out distance using the Ecludien method:
So just loop through the black objects then create a nested loop through the white objects where Object 1 is...
:( :( :( :( O well. Keep up the good work Clickteam :) :) :) :)
Doesn't slow down my computer. Lovely effect :)
You have left out any close tags. e.g. <ad:adConnexion ... />
Secondly, you can only have one root node. So everything needs to be inside one node.
The phrase "STRING" - "STRING" isn't used in programming generally because it can mean so many different things.
Just use the "Named Variable Object"
Replace all your "Set Alterable Value (X) of (Object) to (DATA)"
to "Set Key (objectfixed)+"."+(X) to (DATA)"
If your finding it difficult to do this or...
Yep, there are recycled archives in there
Nope. Shreds file
YES YES YES :D :D :D :D Finally
Simple. Just download http://whatismyip.org/ and you have your IP :)
would it be possible to download http://whatismyip.org/index.html and find it? Or if it uses PHP etc. then take it from the temporary cache after loading it with the Active X Web Browser?
As I said. It works although it doesn't have an XP skin
IF "GetLocalIP$" is called
What does the GetLocalIP$( "MooSock" ) command actually do?
For everything online I use PHP or CGI scripts to write to files on the server which can be downloaded later.
A file exploring system. It would be really useful if you could delete a file to the recycle bin rather than shredding it.
I like the thin buttons ;)
The easiest way is to paste an active object into the background and loop its position. You can also use the quick backdrop object but it can't work at runtime.
I'm making an isometric game and...
Can it be done? Mabye using the Pipe Object... [confused]
What about the Active X object?
Anyway if you want a user skinned one you might aswell make you're own - it would only take a few minutes
same question here.
You can of course do the same thing with the string parser ;)
If you a using a pathfinding extension then whilst looping the zombies put the tile that the current zombie is walking to as filled and the one it is on as empty.
This will mean that the zombies...
Now you need it too bounce slightly :) :)
wha? where on earth did I put the finished version
its called the picture editor. I should make an example
In the Visual's there are two types of displaying menus - either professional or standard. MMF2 itself uses a custom menu and the MMF2 apps use menus that are exactly like other progams....
You've probably seen my example http://raytrace.sitesled.com which works in the same way. I prefer this way to other options because it is easy to change tiles and modify levels this way. Also the...
Here's the finished version.
especially if the loop comes before the spread event
if the worst comes to the worst, use a once-only loop
Doesn't seem to work on my computer - just crashes :(
It depends on what you are trying to do. The most efficient way is to write all your data to a text box and then save it & encrypted it if needed.
The binary object is also a powerful object that...
David wrote it right
Another way of doing it is to draw a line from x,y to oldx, oldy.
*Xmouse <> Oldx
+Ymouse <> Oldy
-Draw line (xmouse,ymouse)(Oldx,Oldy)
-Set Oldx: Xmouse
-Set Oldy: Ymouse
Stupid Computers ;)
That sounds quite a good way to do ite
hehe, no worries :)
I've written the code for you. If you don't want the effects then you only need two values which you can record in the alterable values of one of the objects in your frame.
There is no point in:
-Set Position X ("[obj_active]"): xmouse
-Set Position Y ("[obj_active]"): ymouse
You don't even need to worry about writing any code atall :D
Totally forgot about this sorry :)
Same. It happens with comments alot. I get a screen of blurred comment ;)
You can use it in any number of dimensions which is useful
Solution: Use XP. It will be a good two years before games rely on vista and programs won't start to for while yet
Nearly fixed. I still need to do the movement
Ive got one: http://raytrace.sitesled.com/#Examples
And some Lua syntax: http://raytrace.sitesled.com/Documentation
If you select a blank path it uses the application's directory which is of course a temporary location. At the start of the level, check the location that the Ini is writing to.
It is possible to change directions whilst holding onto other arrows. Infact it is much simpler that way. Example below.
No... It works fine
No... it's easy
I get the feeling of a "replace by another object" function bug here. The bug seems to be that it does not rename the animations properly in the actions when swapping objects. :(
Here is a file...
You need an application side server to be able to run MOO.
It's not life threatening...
There is an example on my network showing how to do calculations in Lua if you're stuck.
Only an Example sorry :)
I'm making an example this evening to show how to move, copy and delete recurrsively
Just open a folder in the tree object and loop through all the items, and if the selected item is not a folder, delete the file with the directory path. Simple.
You can't change folder properties to inherit its parent permissions. Even if you could, MMF2 can't handle permissions anyway - We can only use the file object
Post an example.
If you're unsure then at the start of the level set a global value named ".." to the apppath$ so you don't have to worry about all the long code ;)
I'm making an example for performing recurrsive actions on folders and it will be finished pretty soon.
Any other actions apart from move & delete?
use "./" as a replacement for Appdrive$+Appdir$ or Apppath$.
I find that sometimes the $placeholers don't work so that is the safest and quickest way.
The coding in the groups hasn't changed atall. Just copy and paste my code from the last file into your own.
I don't know how to change the keyboard controls (from shift to space) so in my example...
Coming... Just a sec
as I said before, if we don't do it then someone else does. I'll make an example showing how tomorrow if you want
It's all a question of dithering ;)
It doesn't take much to loop through and move the files. Besides, if we don't program the loop, someone else will have to and it is much easier to program in MMF2 than say C++.
ill make an example tomorrow
Tracing of Rays actually ;)
Lets not use qualifiers in this example but instead an alterable value which defines its group.
If you use a conditional event like "Clicked on Card" then it will...
I'm not quite sure what you mean. If you mean an object (or vertex) that hangs between two objects then this example might help:
I've reformed the code a bit to be a bit neater. There were some wierd things in there ;)
By the way, why did you have 119 blue active objects lying around?
I changed the host I was trying to get to and now it works. Thanks for suggesting the example file :)
Had a look again and I think RagingTiger is talking about the picture editor itself.
What's wrong with the Text Blitter though?
Well, my grandparents live up in London so thats that cost covered ;)
If you run the last events I put above continuously then it will change the counter continuously.
Goto the Application Properties > Runtime.
Make sure "multi-samples" is checked
This is actually not a good method as sounds will "lag" until unmuted
Active object's "Replace Colour"
Add this event to you're current "play sample" events:
*If Mute (a global value) = 1
+Sample is playing
- Pause all Sounds
*If Mute (a global value) = 2
+Only once when action event loops
now this is long :D
1) It's called the list object:
*Alterable Value A of [obj_active] = 2
-[obj_list]: Add Line str$(fixed("[obj_Active]"))
Then you can count the number of lines to find...
The tree object's saved files also acts much like an .ini but it can be much bigger and it is much harder to write to.
I might go if i'm free - what price range will the tickets be in? e.g. Under £50 or under £100 ?
That's ok. :)
1)"Cannot connect to server"
2) Connect to the server and upload a file
I am trying to connect to a Unix server with the instructions:
When I try to connect though, I just get an error message from the object.
The links aren't supposed to be active
A fast loop doesn't draw the frame between the loops.
Just use a normal event
Ive made a quick example. You would want to use something different from the string object but the System box doesn't seem to work properly.
Form Compontents cannot have changed font colour
Use something like the Active Background Box containing text.
If Mouse Over Object:
Set Box text to: name("object")+$newline+"Health: "+health("object")
Set Box to Visible
It's that old?
Please only use one thread for one topic.
Can see three threads just for this post
I've commented here:...
A file path error most likely.
Very logical :)
In case of hi at the end of the sentence then just add another phrase:
* Counter > 0
+ Counter < 10
+ Counter <> 3
+ Counter mod 2 = 1
Always perform a multiplication before a division for the most accurate results :)
Can you still download Video for Dos anywhere?
Welcome to the forums :D
This is a rather ambitious thing to start with. I was unaware that the object could record.
I found this:...
The expression doesn't work. When one of the sides has a negative value it ceases to function properly.
Are you talking about a grid based game?
Do you want all the units to stop on the same square? If so wouldn't you be getting a bit crowded?
What are you using to get the framerate?
Are you sure it isn't 6.3?
You can of course do all of this also without any extensions using right angled triangles.
The distance between Active1 and Active2 is equal to:
The direction that...
That's rather a "harsh" way to put it.
I have written longer (not in these forums) myself. The only think is the lack of paragraphs
As for the request it looks like a "please steal my game...
If the line you want is straight then the expression below can be used:
Set Marker X Position to:
X( "1" )+((X( "2" )-X( "1" ))/(NumberofMarkers+1))*Number( "Marker" )
Set Marker Y...
Needs rather a lot of old extensions :(
You don't need all the "grey create" squares - just use the expressions to snap stuff:
newX = oldX mod 32 * 32
newY = oldY mod 32 * 32
The way I...
These is the same sort of thing I used to replace smiley syntax with the actual picture in my example.
Why not use an array of sorts? At the end of the frame just use the object's erase function or just destroy it
That was good ;)
What would you expect it to do instead?
Good. If an Active X crashes it usually means that version isn't on the computer. The slider bar is a microsoft forms object so most computers should have it installed
Mabye you could just only load the events for the objects in the frame and load them as you scroll up and down.
Exactly what I mean. As I said before, this method cannot calculate velocity so it can never go past the Object in the direction it is travelling.
Vista? Don't go there
There was a really good Ragdoll Engine being posted on the clickteam forums a few months ago but nothing much seems to be happening about that at the moment
Are you sure you're using the Active Object, not the Active Picture Object?
There is an active X object.
Check on my network
I don't use Moo Game because Moo Click has much less "user interface clouding" and I think it is more reliable. I haven't had much chance to use Moo for games so I'm not that aware of the advantages...
This is really good! I'm going to have fun with this :D Thanks :)
Hehe. Not anymore
You have to import the frame to a direction that is already being used.
A MIDI file is rather easy to read. The problem is creating the sound.
If you are using tile based games then this is very useful. An ID is a unique value of each X,Y
Here are the conversion equations:
ID = Y * WIDTH + X
X = ID mod WIDTH
Y = floor(ID/WIDTH)
if you want to send files then use MooSock (or send the file in chunks with MooClick)
aslong as you don't nest a loop in itself then yes you can do this.
Or you could convert your X,Y to an ID and just run one loop
set value to (random(5)+7)
Really? You could always provide the active x along with the program...
They should all work, just that looki's version is rather lengthened.
PERCENTAGE = VALUE / TOTAL
because we display percentages as a fraction of 100 then you just x by 100. The problem with...
thats the one
as I keep on saying there is an active X slider bar. There is an example of my network
I suppose. You'll have to release the code sometime ;)
you can work that out from the following:
If shift is a value that is worked out externally from the slider afterwards that defines the origon or the "MIN" value
MIN = SHIFT
What happened to the great "morph" option ?
That is a really smooth engine :)
It could also make a very effective movement engine aswell
I have always used
-Set X Position of "CAM" to X( "CAM" )+(X( "PAN" )-X( "CAM" ))/10...
resize the client area at runtime by using the normal window resize.
You can calculate window y size - client area
Then when resizing just set the window size to "client size" + x
If you mean MMF2 the program to search for applications no.
If you mean you're own applications communicating with each other then yes. Use the "shared data" object.
Great website design therickman :)
A work around not using lua functions is to "run script"
z = x + y (or whatever)
To test this later then "run script"
arg = x + y (or whatever)
then compare "arg" to "z" using mmf2
The CPU Product ID (when you right click on my computer) can be found in the registry at:
Two problems: It is editable. There must be a time...
Clones = Little Block Backdrops
If the backdrop is a repeated tile then use the "motif" option in quick backdrop
Also the Lua Object can store variables and use them in calculations unlike other evaluators
autorun is simply a windows explorer command file like desktop.ini
Create a duplicate on the same position and increase its size by one
and the Immediate If Object
ok. thanks ;)
There needs to be a feature to obtain the nth child of a key.