[QUOTE=Robber;33122909]And a few days later I've already made over 70€ from it. Although I feel like I made a huge mistake requiring a gyroscope which only a few high end devices have. I'm getting requests/complaints about missing accelerometer support all the time...[/QUOTE]
Hey I'd buy it if I had an android phone, it's a really cool thing. I'm not really sure how the android system works, is it just a passive program which sits in the background while you do other things?
[QUOTE=Yogurt;33121995]Use a shader to distort things behind it?[/QUOTE]
Do you have an example of a distortion shader? And how would i draw it to only the water tiles and not everything else. I don't know a lot about shaders
[QUOTE=nmagain;33123066]Lists!
or you can do it more simply by doing
if( Key.isDown(Key.SPACE) )
{
var arrow = _root.attachMovie( "Arrow" , "Arrow" + _root.getNextHighestDepth(), _root.getNextHighestDepth() );
arrow.x = player.x
arrow.y = player.y
if (arrow.hitTest(_root.WHATEVER) {
function();
}
}[/QUOTE]
Really? So I can just refer to it as arrow? Sweeet
[editline]4th November 2011[/editline]
Fuck it doesn't work
[QUOTE=Eric95;33123256]Really? So I can just refer to it as arrow? Sweeet
[editline]4th November 2011[/editline]
Fuck it doesn't work[/QUOTE]
are you sure it's inside the first if statement
[editline]4th November 2011[/editline]
show me your code it's working here
[QUOTE=nmagain;33123327]are you sure it's inside the first if statement
[editline]4th November 2011[/editline]
show me your code it's working here[/QUOTE]
No wait, it's working sometimes (like with hitTests) but for some reason it won't move when i put arrow._x += 7; in my main onEnterFrame function.
//that's because you specified the x position of it when you created it, you can't change that unless it's a variable, then you can change that variable to what you want.
edit: oh wait i thought you were talking about something else, now that i understand you:
It's not working because the arrow variable is limited to that if statement.
[editline]4th November 2011[/editline]
oh shit oh shit oh shit content is dying i better hurry with that standing on arrows thing.
[QUOTE=Sh33p;33123073]Hey I'd buy it if I had an android phone, it's a really cool thing. I'm not really sure how the android system works, is it just a passive program which sits in the background while you do other things?[/QUOTE]
Thanks, I'm not sure if I understand your question right, but a live wallpaper is a normal service that has a few methods that get called by Android like when settings change or the user interacts with the app and for animated stuff you either have to use an OpenGL view which can draw automatically at I think 60FPS or use threading. Android has many built in convenience features for that. My app works by waiting until the wallpaper becomes visible which Android will tell me and then register a listener for the gyroscope and start drawing whenever I get new data. And when it becomes invisible again because the user opens an app or turns the screen off I just unregister from the gyroscope and since I'm not getting new data anymore I stop drawing.
Edit:
Hmm, I think you were just asking what a live wallpaper is. Yes, it's just sitting behind the homescreen (comparable to Windows' desktop).
Hopefully someone else finds the technical explanation interesting :v:
sorry eric :(
[editline]4th November 2011[/editline]
my automerge!
[QUOTE=Robber;33121462]What IDE are you using? The IDE I use does it like this:
[img]http://dl.dropbox.com/u/1106779/EclipsePwns.png[/img]
when Ctrl+clicking anything it jumps to the declaration and Alt+Left navigates back to where you came from and Ctrl+Q to where you last edited something. I thought this was standard...[/QUOTE]
Just found out that ctrl+- goes back. Although resharper keeps eating shortcuts when I tell it not to :\.
I had a Probability & Statistics exam today (a course which I should've finished 3 years ago :v:), and there was this particular question:
"Find the total amount of dividers for the number 68600". So basically every x for which 68600 % x = 0. They also gave the hint that the prime factors were 2^3 * 5^2 * 7 ^ 3 but whatever, the problem is I didn't study that particular part of the theory. It was multiple choice luckily so there were 3 options:
a) 18, b) 70, c) 48
I thought it would come to gambling when I suddenly realized I had my TI-83 Plus graphics calculator lying in front of me. You can write small programs for those things (or hide all your notes in the script source).
What would any sane programmer do in this situation? Brute force the fuck out of it of course:
[code]
0 -> I
68600 -> G
1 -> N
Lbl F
If (G/N=round(G/N,0))
Then
I + 1 -> I
Disp N
End
N + 1 -> N
If (N <= G)
Then
Goto F
End
Disp I[/code]
Didn't know the proper syntax for While loops so I just used Lbl and Goto (yay).
One problem though. It is slow as fuck. With G = 20 it takes about 2 seconds to finish. Meaning 68600 would take about 2 hours if it didn't run out of memory before that :v:
In the end I just gambled on c) 48.
When I got home I whipped this up in [url=http://codepad.org/Y8QdD81a]codepad[/url]:
[lua]local x = 68600
local n = 0
for i = 1, x do
if (x%i == 0) then
n = n + 1
end
end
print(n)[/lua]
Output: 48.
HUZZA
[QUOTE=nmagain;33123415]//that's because you specified the x position of it when you created it, you can't change that unless it's a variable, then you can change that variable to what you want.
edit: oh wait i thought you were talking about something else, now that i understand you:
It's not working because the arrow variable is limited to that if statement.
[editline]4th November 2011[/editline]
oh shit oh shit oh shit content is dying i better hurry with that standing on arrows thing.[/QUOTE]
Oh, thanks. I got them to move but that's only because I put the functions into the actual movieclip.
I know you probably don't want to help me anymore but if you COULD give me some pointers on how to make them move and hit things in a valid way, that would be really nice of you. I hope you other people in this thread don't find me too annoying, I'm probably spamming it up
[QUOTE=Clavus;33124023]I had a Probability & Statistics exam today (a course which I should've finished 3 years ago :v:), and there was this particular question:
[/QUOTE]
Love this, my TI-82 has saved me so many times in math.
[QUOTE=Robber;33123656]Thanks, I'm not sure if I understand your question right, but a live wallpaper is a normal service that has a few methods that get called by Android like when settings change or the user interacts with the app and for animated stuff you either have to use an OpenGL view which can draw automatically at I think 60FPS or use threading. Android has many built in convenience features for that. My app works by waiting until the wallpaper becomes visible which Android will tell me and then register a listener for the gyroscope and start drawing whenever I get new data. And when it becomes invisible again because the user opens an app or turns the screen off I just unregister from the gyroscope and since I'm not getting new data anymore I stop drawing.
Edit:
Hmm, I think you were just asking what a live wallpaper is. Yes, it's just sitting behind the homescreen (comparable to Windows' desktop).
Hopefully someone else finds the technical explanation interesting :v:[/QUOTE]
That's pretty cool, thanks for the explanation.
[QUOTE=MadPro119;33124072]Love this, my TI-82 has saved me so many times in math.[/QUOTE]Yeah, it served me well too. Can't wait for the day when we can use Wolfram Alpha during our exams though.
[QUOTE=Clavus;33124023]
Didn't know the proper syntax for While loops so I just used Lbl and Goto (yay).[/QUOTE]
I think while loops require a statement as the conditon. While it equals a positive number, the loop is run.
At least, that's how it seems to work on the 84+. While 1 didn't, though - had to use While 1=1 for some reason.
[QUOTE=Eric95;33124071]Oh, thanks. I got them to move but that's only because I put the functions into the actual movieclip.
I know you probably don't want to help me anymore but if you COULD give me some pointers on how to make them move and hit things in a valid way, that would be really nice of you. I hope you other people in this thread don't find me too annoying, I'm probably spamming it up[/QUOTE]
i honestly wa/\/t to help you, but the /\/\ & /\/ keys o/\/ this PC are broken so i can't type quickly!
(i use spellcheck btw)
[QUOTE=Clavus;33124023]
When I got home I whipped this up in [url=http://codepad.org/Y8QdD81a]codepad[/url]:
[lua]local x = 68600
local n = 0
for i = 1, x do
if (x%i == 0) then
n = n + 1
end
end
print(n)[/lua]
Output: 48.
HUZZA[/QUOTE]
Pretty sure you only have to go up to x/2
hey, you ca/\/ put the hitTest's inside the arrow's .as file since you're using AS2
[QUOTE=nmagain;33124347]hey, you ca/\/ put the hitTest's inside the arrow's .as file since you're using AS2[/QUOTE]
Oh, right! You're using AS2 too, right? Because if I remember correctly AS3 doesn't have if(Key.isDown) and such
yes i use AS2 for this ga/\/\e
[editline]4th November 2011[/editline]
& there is a library for AS3 that adds if(Key.isDown) iirc
[editline]4th November 2011[/editline]
offtopic: just noticed that you're from sweden. i love your country!
What ever became of the facepunch android app?
hey overv is the FP andriod app done yet?
[QUOTE=Robber;33122909]By the way, icantread, how did your app sell? Because as garry already said in his blog posts about that gem matching game it's really hard to get noticed between the many thousands of apps in a mobile app market.[/QUOTE]
Seems like it's impossible to get noticed on any market these days
[IMG]http://i.imgur.com/TQSjs.png[/IMG]
There is no good way in python to print color to the terminal in windows and curses seemed like overkill for what I wanted to do. Code that produced this output:
[code]
Console.write("Hello, %!g How are you? %!r As you can see there are a variety of colors here. %r You can go darker %G or %g green %!y /%m /%!m")
Console.write("\n\n")
Console.write("%!g <STATUS> %G Everything thing is: %!G Okay.")
[/code]
Anything with a "%" is a color declaration. You can escape the percentage sign if you want. The "!" will intensify the color, making it brighter. This is for a little text based project I want to do.
The lack of concurrency with db4o is driving be batty. Time to switch to sqlite I suppose :(.
[QUOTE=danharibo;33121954]I'm using pdflatex on linux, and just putting the .sty from google code in the same folder as your .tex it should find it automatically[/QUOTE]
Nope, that didn't do the trick. I've tried alot of the things people say to try from googling around, various tutorials etc. None seems to do the trick, and I really want to try this out.
[QUOTE=amcfaggot;33122887]That's funny stuff there! I'm in tears from laughing so hard
While you're on that thought train, ask yourself who would name their family line after a color, Matthew Blanchard? :downs:
Maybe your linage is known for being the center of bukkakes?
Assholery aside though, I find it interesting I'm frequently called "amc" when all of my identifying works online, including my avatars are all "am". I think it's the -faggot postfix which breaks this distinction.[/QUOTE]
Woah just googled it and I've been apparently pronouncing my my name wrong.
It's apparently:
"Blan - Chahr"
My family pronounces it:
"Blan - Charred" or "Blan - Cherd"
Remade nmagains arrow game thing, now with extreme standing-on-arrows action!
[url]http://dl.dropbox.com/u/679615/arrowthing.html[/url]
[QUOTE=Robber;33122909]And a few days later I've already made over 70€ from it.[/QUOTE]
Yeah, I bought the fuck out of that shit.
[QUOTE=Robber;33122909]
By the way, icantread, how did your app sell?[/QUOTE]
it sold terribly.
"exploding" on the app store is a very intriguing phenomenon ...
i exchanged a few emails with ed rumley from chillingo, and the most important factor in the "explosion" is what he calls the "deck appeal" - those 5 seconds that either make or break the sale ...
how do you make or break a sale in 5 seconds? visual appeal of the game, name of the game, and reviews of the game - if it's a new game, then you're stuck with just the visual appeal and name
Morph clearly lacks in the visual appeal aspect ... the icon just looks stupid. that's why i've teamed up with an artist from my school to completely revamp the entire graphical style of the game from the ground up - something that will really "hook" potential buyers just by the icon. i'm also talking to a possible musician who will do ambient background tracks for the levels. once this is done, i will publish an update and re-promote Morph from the start ... everyone who bought it already gets the update, and everyone else will be more enticed to buy it
of course, another big contributor is the publisher ... every game i've seen chillingo publish gets thousands of 4-5 star reviews (including angry birds, cut the rope, feed me oil, etc.)
Sorry, you need to Log In to post a reply to this thread.