This is already functional in my Bluetooth object, maybe I can actually publish it. What time frame are you looking at? I am incredibly busy, so I'd hate to commit to this if you are looking for...
Type: Posts; User: Eliyahu; Keyword(s):
This is already functional in my Bluetooth object, maybe I can actually publish it. What time frame are you looking at? I am incredibly busy, so I'd hate to commit to this if you are looking for...
The (x-1)/10 makes it so 10 stages increment the world by 1, which is pretty much the standard.
The (x-1)/5 will make it increment an extra 1 once (x-1) >= 5, and we use min(_,1) to make sure that...
Use the following formula:
min((x-1)/10 + min((x-1)/5, 1) + 1, 10)
Where x is the stage number starting at 1, and it will return the world number, also starting at 1.
To wrap around, replace...
Hey guys, sorry I haven't been super active. Classes have started again, so I don't have a ton of free time to work on this.
I also started working on my own project with this extension, so I found...
I think testing is done, as people are saying it works. I added the ability to send floats and integers in addition to bytes and strings, so games should be easier to make.
I'm working on packaging...
Glad to hear it is going well. I will be adding a condition "Address _____ is connected" because I can see that being useful. Let me know of any other actions, conditions, or expressions that would...
I don't think you can do it with only intents, it looks like there are certain function calls that need to be done. You'd need an extension.
EDIT: FVivolo tells me that you can do it with only...
I'll probably make a complete example set. The difficult part is that I've been testing with addresses hardcoded in, so I get to skip all the discovery and stuff and get straight to sending data....
Nope the ad thing was what I removed because it was unused. Did you redownload? That line is gone so you shouldn't be getting the same error.
Don't think that's an issue. I removed the unused imports and uploaded it to the same location. Hopefully that fixes it! You do have the Android SDK installed and MMF2 knows where it is?
Haha thanks for the good words even though it didn't work at all! It's ok, I didn't know what to expect with this, so bugs were anticipated.
Can you send me the error file?
Also, make sure...
I used the standard Android SDK for extensions, then just the normal Android SDK. Nothing special included. I'll be sending you guys PMs soon with the download link.
SgtSmileyUK - Yes you can interact in multiplayer ways. You can discover nearby devices and start interactions with them. The problem with bluetooth is that one device has to be a server and the...
I don't know how many of you are still following this thread, but I have created the Bluetooth Object for Android.
A thread about signing up to beta test can be found here:...
I know Bluetooth for Android is a desired feature, and I personally wanted to use it, so I went ahead and created a Bluetooth Object for Android!
Unfortunately it is hard to test such...
I made an extension called RSS Feed, but it unfortunately only works with the Flash exporter.
The center is always (Width/2, Height/2)
Double the values in PMO, such as velocity and gravity.
According to the documentation of PMO, the speeds are in pixels per frame, so 200 corresponds to 2 pixels per frame. What exactly is your problem?
Clone Object instead of Duplicate, then they are separate objects. Unfortunately then you cannot affect them as if they are one with the others again. If you wish to do that as well, you'll need to...
I figured out that it changed when I changed the target Android version from 2.2 to 3.0
I had no idea it would actually change things...
I had been working on an app in Android, and it was fine, then I updated to the newest beta and immediately reverted back. That's all good, except now one of my applications is all weird in Android....
Just updated to the new beta to test again and it still happens occasionally.
This is happening on the Galaxy Tab 2.
Sometimes when I run my app, it just loads a black screen and I can do nothing. The only way to get around it is to open the task manager and end it manually, then reopen it, and occasionally it'll...
Show and Hide Keyboard aren't working at all.
Is there any way to get around this? Also, a Submit/Go/whatever button would be nice instead of the return key, like the iOS Edit Box has. Is this...
I am considering buying the Android exporter for a work project, and I was wondering if some features would work in it. I looked through the forum and couldn't find the info I was...
It hasn't been this way for over a week, this happened in the last 2 days.
It's ok. It was dying anyway.
Each object has X Left, X Right, Y Top, and Y Bottom as position expressions.
If you just made a Kickstarter in one day, don't expect it to do more than fall flat on its face. You realize how Kickstarter works, right? Real people put in money as investments. This means that...
This isn't going to be marketed anyway, so I don't see a problem with using a prebuilt machine.
I'm not really worried about black bars and resizing, I just want to make sure it will run due to memory constraints, and I would imagine a platformer on 960x640 would be quite wasteful due to larger...
That's a good point, thank you. So would you recommend 960x640 or smaller?
I just started working on a game that I intend to release for iPhone and iPad, but I'm wondering what the best resolution to use is.
I'd naturally go up to 1024x768 in order to get the best quality,...
Try Atan() for a curve that starts off steep and levels off.
I personally like hyperbolic tangent, but it's not worth putting into MMF2.
I'd like to point out that I have a laptop with a CD Drive that has no tray at all, just a slot, and "Open Door" basically means "Eject," so the CD comes out if there was one in there.
Yes, that is how it works.
What's coming next is projectiles. They will come in two sorts: ones that immediately destroy upon hitting an obstacle, and ones that bounce around with either a certain lifetime of bounces or...
It can handle loads of IDs. I've had it working with thousands.
A few things to note about how I have IDs running:
If you try to create a body with an existing ID, it simply won't create a new...
Yes, alpha channel is an alternative to the transparent color, not a supplement.
King_Cool, here's how alpha works:
Typically you have each pixel consisting of (R, G, B). Alpha channel gives each pixel one more value in the range 0-255, so each pixel is (R, G, B, A). The...
Flash is buggy with Replace Color anyway, regardless of the confusion with black, so don't count on being able to use it in Flash.
Yes, that's actually my next step. I'm also determining how to handle projectiles, because it'd be useful to have projectiles done in here as well, but then I'd need collisions in as well.
You can get an iPad 1 for well under $300 here, and I don't think shipping to brazil is over $100.....so that sounds like a very poor deal.
Protip: When you go to make an alternate version of a game, such as a trial, sponsored version, demo version, etc, do a Save As BEFORE you make the changes.
As an example, if you have a game with save game slots, you typically will name the groups Slot1, Slot2, Slot3 then have an item Name for the player's name in each slot. How do you propose being...
I'm naturally analytical and good at math, and I've taken math through vector calculus as well as calculus-based physics, so mathematical solutions generally don't require much effort on my part....
Here's an example I have of shuffling a list.
ProdigyX's solution is a much worse solution, so I went forth and created an example for you of how to actually do it.
Do a fast loop through the list (length/2) times then apply whatever you want to the line with index (loopindex*2)
Also, Clickteam has shown great respect for its users and is always in touch, so I don't think you should expect them to pull an Apple and release a new product right after you got the old one. I...
Because people on the inside have said so. I recently asked on ClickConverse and I think the answer was at least a year away, with implications of it being well over a year.
It is the Mouse Object. It's probably marked because it has the ability to set the cursor's position, which is generally frowned upon.
You can always upgrade from Standard to Developer with a discount that equals the price difference, so you do not spend any more to upgrade.
I'd recommend Standard for now, then you can always...
Fanotherpg....in math, mutliplication and division hold the same precedence. 100/10*3 mathematically is 30.
An integer divided by an integer will yield you another integer. Int(0.5) = 0
To get around this, do 1.0/2
That's not an error.... 100+100/2 = 150.
Remember your order of operations: PEMDAS
Division comes before addition.
Are you specifying the position to draw it at?
This example I have uses a similar, but slightly different, expression. It's asymptotic rather than linear, so that may or may not be what you want.
I'm just thinking that changing colors probably is pointless...
It only freezes on the iPad, not on your computer?
My humor is not offensive; you just don't like me mentioning bulbasaurs.
Here's an example I made for someone a while ago.
The problem is I use the integer X and Y positions, rather than storing them as decimals in alterable values. So when the position is 0, the sin function is going to return 1 rather than 0.9 or...
Here's a rough example.
No problem. If you need help with the swinging back and forth then slowly stopping (due to friction), let me know.
Use the up and down arrows to swing back and forth.
This example can be applied however you'd like by simply changing the pos value.
I wanted to use real physics, but it seems like you wanted...
If you load an INI that doesn't exist, it creates a new empty one.
If you really need to know if it has existed, just create a value FileExists, set it to 1 on creation, then test if the value is 1....
If you give beginners frameworks, they're hardly examples. They don't read comments. They don't care how it was put together. I remember doing the MMF2 tutorials for MOO Chat and such, and I ended...
I am against this entire framework idea. Where is the joy in making games if you just take an engine, slap in your graphics, and carry on like you made the entire thing? You end up getting clones...
I'm attaching it here. It uses a lot of actives, but that could be greatly reduced by using larger actives than I did, and perhaps adjusting the slant on the top of each with animation frames.
I made an example for him of how to give the illusion of it using simple math with no extensions. I don't know if he's using it or not.
Fastloops work everywhere, PMO works in Windows, Java, Flash, iOS, and Anaconda.
EDIT: ProdigyX tells me PMO works on other runtimes as well, but I'm just listing what ExtensionView tells me.
Direction = Angle*32/360
Jacob has already done this.
Why can't the pixelated version just be stored as a different animation?
Sorry mobichan, I tested that expression and it didn't work, but I was exhausted so I just deleted my post as not to leave faulty info, then I forgot about this thread. Glad to hear you got it...
I find it interesting when people just rush into the forums saying "MY GAME IS SLOW, IT MUST BE MMF2'S FAULT!" And this exact type of thread is nothing new here. What gets me is how people can just...
Max(a,b) selects the larger value between a and b, so if your equation is negative, it chooses 0 as the alternative.
You could use a fastloop quite easily, but can I assume you want to do this without a loop?
Are the individual pieces all circular, or will they be oddly shaped?
Why even spread the value? Just assign each box a value at edittime to use for the alterable value's index, rather than trying to spread it.
Give the serial code of your copy of TGF2.
AyreGuitar is right.
No need for conditions or anything when MMF2 already has modulus in it. It's as simple as one expression.
With just animations it won't be this flexible. Unless you give each blade over a hundred frames for each possible position.
EDIT: Can surface even draw parabolas? I don't see a way to.
Notice that all the grass blades are parabolas with constant curve lengths. If you could find a way to dynamically draw parabolas all over the place, this would be relatively easy.
It shows up in my list.
Nevermind, the answer is no. If it were tile-based, the solution would be much easier.
Will the levels be tile-based?
You could use the Process Viewer extension, perhaps.
Think about how that action is working. You have:
Alterable Value == 0 -> Set Counter to the number of actives
When there is not an instance of an Active with and Alterable Value of 0, that...
If you use a string, just make every number three digits, ie. 001, 002, 003...099, 100. When you convert it to a number from a string, the zeros will be removed. "001" -> 1
Then you don't need to...
Of the 3 Actives, 2 are clones, then one is a duplicate. Based on the code, it looks like you wanted all 3 to be duplicates of the same object, but you have a clone.
May I ask what extension it is that you need?
There is a Line of Sight extension, but it only works with tile-based maps.
The problem is that in a counter, those numbers are actually stored as 1,5,10,7. The 0 is just in the display.
To turn 1,5,10,7 into 01,05,10,07 in your list, instead of adding Str$(number), add...
I explained the calculations. There's nothing really numerically. It's all conceptual.
Torque = Force*DistanceFromPivot = MomentOfInertia*AngularAcceleration
T = F*d = I*alpha
Force = mg, so...
Almost always. This is a situation in which X and Y need to be moving together. When they are decelerating, they can move independently. Accelerating is entirely different, since the movement of...
You can do screenshots within your app then create an AVI with the AVIs Object.
Of course, this would be a pain. Chaos is right.
What a weird solution...lol. But if it works, that's fine! It's all about getting it into your application easily.
As far as slowing down your program, there will be absolutely no noticeable...
I second this. My solution seems far easier to use...There's no logical reason to say "I'm not using distance and angle" when they make the code cleaner and shorter. It's by no means complex code.
I like the Vector movement, since it's basically a 360 degree movement, but I find collisions to be a pain with it.
Also, it sounds like you're using trig to aim at the player then moving towards...
I've been using MMF2 for years; I know this. ;)
Narfafian specified that he was using Bouncing Ball movement, and last I checked, that was a built-in movement.
I'm still confused why you're...
If you are setting angle with ATan2, that's going to override the automatic rotations.
In the Zombie's properties, go to the tab with the red play button, "Runtime Options." Enable automatic rotations.
It sounds like this is what you want.
I had to use a few actions, but I think it's the best way to do it...
Y distance between the player and the object is simply Y("Object")-Y("Player").
And you said xVel was a constant. Then xDist is just X("Object")-X("Player").
My equation yields Alt Value Y in your...
Yea I don't know why there are lines showing up. Not my cleanest example, but I wasn't even expecting it to work at all.
It's rather simple, actually.
First I determined the maximum rotation the seesaw could handle on a flat surface given its width and height, and that boiled down to a simple trig equation.
yVel = yDist*xVel/xDist
To do it manually, it would be something like this.
Not perfect, but the physics are there. Player movement is choppy, but this might send you along the right path.
Box2D is an extension. If you're still a newbie, I wouldn't recommend it. It's among the more complex extensions.
It's probably best done in Box2D, which is a physics engine. However, if this is minor in gameplay, you could just calculate the torque exerted on the seesaw and rotate it manually.
You can just use Round( X ), which does it for you :)
The bending is just optical illusion. Screenshot it and draw a line over it in MS Paint. It's perfectly straight.
The speed issue isn't an error. You have it set to vertical parallax. The active...
Just have an event:
Always -> Set Counter to 0
Then ther events testing for positions adding 1.
If they are all in the right places, it will generate 9, and you can handle the winning from...
It should actually be Xposition+cos(Angle)*Speed and Yposition+sin(Angle)*Speed.
Never use cos() for Y or sin() for X.
This tutorial covers using basic trig to create custom shooting at any speed: http://community.clickteam.com/showthread.php?t=60440
Let me know if you need help with anything.
Jacob, begone. I'm not going to use MMF2 if I can't even use basic keyboard functions...and perhaps it is something with the keyboard, but MMF2 is the only program in which it has problems.
My mouse has never been able to scroll in MMF2. Well it does in the frame editor, but not in the event editor.
I could tolerate that, though. This, however, needs to be fixed...
My keyboard is new enough to be wireless and pimped out with all the media controls and stuff.
And it has always worked with MMF2.
My keyboard is not fully working in MMF2, as control commands (like undo, copy, paste, etc) and the delete button simply do nothing.
I think this is a build 255 problem, but I never...
Thank you. I did dozens of searches of my error, the topic, on CT's forums, on flash forums, etc...And I wasn't even aware you could choose which flash version to build to.
I just worked all night on my game and finally got through EDIF's new idiocies, but my final problem lies in exporting my game to Flash. I use vectors in 2 extensions and I get this error.
I'm having a lot of .mfa's where MMF2 won't load a few frames and just deletes them without explaining what the problem was.
Now that I reloaded MMF2, it's not doing it, but is this something I...
You could just use the algebraic representations of hyperbolic trigonometric function. It'd hardly be pretty, but it's fully possible.
If you're going to use the definition of hyperbolic...
In all seriousness, Verdana looks good.
I'd say blub's suggestions are the best bet in this fight. You can't stop piracy, but you could maintain a log in a database for each key to keep track of them.
Obviously you don't want this...
Yea and we all know the default font should be Comic Sans, not Arial.
Can we get custom colors allowed, as in enterring the R,G,B manually? The color selections now are all full saturation, and I prefer a dusky gray-red for usernames.
atan2(y,x) returns values from -180 to 180 degrees.
atan(y/x) returns values from -90 to 90 degrees, uninclusive.
You could use atan rather than atan2, but the problem is you'll never get -90 or...
I think it'd be cool if you could make a list of things to beep you, with just your name being the default entry.
For example, I could disable beeps for Eliyahu and enable them for Evan Numbers...
If you've ever used anything you're using bitwise operators then :P I'm just saying the expressions for them are very rarely useful in MMF2, so I wouldn't make it a priority for newcomers to learn.
It's rarely useful in games though.
Y mod 50 == 0
Y > 0
Y <= 100
So far I've found that I mispelled "Body iss On Ground" and Set All Gravities is buggy.
I just made an object for tile-based platform games that can contain multiple bodies, all using rectangular collisions. It's really fast and should clean up a lot of messes in platform games that...
Here is an example of what you need using this formula to figure out the distance between two angles taking wrappage into consideration: ((end-start+540) mod 360)-180
That won't account for the fact that angles go from 0 to 359, but 0 and 359 are only 1 degree apart, not 359. Jacob had the equation for wrapping angles...
Use binary data.
I'd also like to fix ChrisBurrows as PMO is far superior to the default platform movement. Don't even bother using the default.
PMO allows for holding jumps to get different distances, and easily...
You can either make animations outside of MMF2 and load them in an active, then play the animation, or you can create a few card objects and move them at various speeds from a central point.
...Yes. 254 is the latest.
Ok that's what should happen, except the everything turning black.
(Sorry, I always forget if check or uncheck means the thing will move with scrolling. They need a better name for it.)
Did you check "Follow the Frame" in runtime properties?
Follow the example.
PMO Collision Test, Player is Overlapping Block: PMO->Player is Overlapping Platform.
You need to just scrap 8-directional. It's useless here. Start by just redesigning the code you have, beginning with the PMO example code. Then add features to make the game. It'd be easier than...
Have you even looked at the example that comes with PMO?
You are using 8-directional movement along with PMO. Get rid of 8-directional. Only PMO.
Then just follow the example, it shows how to...
Are you sure you got my email right?
Sounds like you should only being using 2 frames but loading whatever you need externally. If you have over 100 frames you should probably rethink how you're going about this.
Would this have to do with the "Follow the frame" option? I'm not on MMF2 right now, but you can give that a try if all else fails.
Can you upload your mfa so we may look at it?
If you mean having events to control the player and make it look like someone else is playing the game, then yes. Just no user controls, obviously, for a screensaver.
EDIT: Sorry, forgot MMF2 had...
It's too late now. Within like 48 hours or maybe less you can edit a post. Send a message to a moderator or admin if you are concerned and they will fix it for you.
ChrisBurrows, your example creates random empty lines... That's not good. It also depends on swapping lines a fixed amount of times (30 in your case). This means sometimes you get chunks of the...
It should prompt you once in a while. You may have had a bad version of 253, as there were a bunch of betas.
Upgrade to 254 then.
Sounds like a computer error, especially if it's happening in old files that used to work.
What build of MMF2 are you on?
The key is to make sure you challenge the player without making it impossible and not making them feel like they were ripped off. Every punishment in a game should be deserved and shouldn't...
Send me an email with it. Eliyahu[at]TripleZap[dot]com
Add a new event and negate the condition, and:
Repeat while NOT Pressing Shift:
Set Max Speed to Whatever Lower
Change Animation to Walking
No problem. The same happened to me on one of my games a month or so ago. I was using the movement trying all these hacky methods to fix it, then someone just told me there was the option. Silly...
In the movement settings where you chose 8-directional, at the bottom there is a checkbox labelled "Stick to Obstacles." Check it. That should fix it.
Yes, but the problem occurs when you insert the new line before the original line. If it is inserted randomly you don't know which index to delete. You could get around this with FindString, I...
On that same thought, a Move Line action seems like a necessity, and I don't understand why it doesn't have it already. Just a simple Move Line A to B.
If you need an example of the shuffling, I'd...
There is no advantage to it. A game that has stages like this should probably be running on a single engine and loading external levels.
When you build it, you need it all in one application. If you try to build the project, each application gets its own .exe.
That'd be how you do it, and it should work on iPhone.
Just remember that when you start the "score" loop, you set total score to 0. Otherwise each time it runs it will just keep adding.
I'm in on this sharing business >_>
Just run a fastloop than randomly moves lines around for at least 12 iterations.
EDIT: I didn't realize that the List Object didn't have some action to move a line.
The way I like to shuffle a...
Are you talking about qualifiers?
How is that more organized than just using 1 frame per stage and having everything within one application? Generally more files = less organized.
Regardless, MMF2 can save the project, which will...
If only we could time travel...
The downloads work, as well. :)
gastrop0d's message was completely mmf2 code. I don't think you would've appreciated him posting: "Checkmark! Checkmark! 2 Checkmarks!"
I'm sure if you read his message rather than thinking it...
You might want to go through, categorize them into folders, and delete useless ones.
Looks fine to me.
As a side note, if you want to run a loop a lot of times, you can tell it to run -1 iterations and it interprets it as infinity. Then the loop runs until you stop it.
To clarify on my previous post, 12 isn't necessarily average, it's basically the most moves the game should take for a competent player, similar to how it's impossible to lose tic tac toe if you know...
Use a fast loop, iterate through the entire list and add each item to the end of a string.
8 is perfect.
With perfect strategy, one can always win in 12 or less tries.
Anything above 12 means they made dumb mistakes.
The File Object can test if a name exists, so use that and with a fast loop increment a value starting at 0 or 1 until the name doesn't exist.
No it wouldnt. 16-dir works perfectly fine.
Remember that 16-dir is not the same as dir-16.
NewDir = 16-OldDir
Heh i know the feeling of that. Whenever I have collision/overlap problems I end up getting frustrated and doing:
Object A is overlapping Object B
OBject B is overlapping Object A
Stillhawk, if you need me to change my example at all, let me know. But you should definitely be using either subtstrings or a list, not fast loops. Fast loops can make things messy when they are...
Fixed it for you. And notice that i changed the conditions a little to be less silly.
You could easily do some pseudo 3D without any extensions or anything, just trigonometry. That would suffice for a target-shooting game, as long as there isn't supposed to be any actual movement of...
Here's a small example I made of gravitational attraction showing Kepler's laws.
Right click to make a body.
Left click to make the satellite type object.
I made this in a few minutes so all...
You'd need to use RickyRombo's superb extension.
The normal line is the line that goes from the surface straight upward. Think of the flat line that lies tangent to the surface. The normal line is always perpendicular to that. So yes, it should...
In that specific instance you will always get 45 degrees. You should get the normal line to the surface which represents the force applied to the ball. You can either use the direction of the force...
I added a button to critically damp the system.
The problem with that is you'd need it to be a physical spring with mass.
Here's a spring example where you can alter and see the effects of:
Unstretched Spring Length
Mass of Weight