« first day (528 days earlier)      last day (3455 days later) » 

3:22 PM
@Shubhank soomla IAP k lye he use hota hena? mje just virtual coins ka concept nzr araha hy usme :\
iOS k lye kese use krengy :(
 
Hey, i think i have memory problem, please see here: stackoverflow.com/questions/25583868/…
 
3:38 PM
@magnuskahr can u pls tell me how to send arraylist of type "modelclass " be send to another activity in android ?
 
Sorry no, i have not worked with android for two years and have forgot all of it :-)
 
3:54 PM
@ErumHannan tu ghr pe b kam krti hy kia? :P
me stil in office :(
 
ya Allah yr
nhi
me ghar pe quiz app bna rhi hun
 
wah great yr :)
dua kr mra issue solve hojaye
pagal hogai hn mey :'(
 
oh ho kia hua haan question dekha
 
abe search krwadege plz
ek issue ko
@ErumHannan may be this can help u: stackoverflow.com/questions/2906925/…
 
kia search krwa dun btao ?
@iAnum
 
4:03 PM
yr ek exception arahe hy
unity ep kam krhe hn
ek plugin hy prime31 storekit
Uncaught exception: NSInvalidArgumentException: *** -[__NSPlaceholderDictionary initWithObjects:forKeys:count:]: attempt to insert nil object from objects[4]
sorry shubhank :P
 
4:18 PM
:p
 
people :D
guess what :D
 
all
you gone mad :P
 
tomorrow is sundayyyyyyyyyy
\0/
:D :D
yayyy
#okByeGdnight :p
 
anyone android developer here?
need help in parcelable
 
me!! me!! meee!!
 
4:27 PM
ok
31
A: Android Parcelable -- RetailerOrderActivity.java return null

PrabuddhaHere is how you can pass an ArrayList as I tried it. MyListClass.java - Custom class public class MyListClass implements Parcelable{ private int test; public MyListClass() {} public MyListClass(Parcel read){ test = read.readInt(); } public int getTest() { ...

foloowiing this answer
 
uhh what is parceable :/
 
actually its a way of store objects
right ?
 
oh. :( havent wrkd on it
 
ok one thing more
 
yeah
 
4:30 PM
@all
 
if i have one model class now on evry button click i m saving data in my model class means on 5 times button click i have saved 5 times different data in my model class will all these data be present in my model class or will be the only last data in my model class?
@Saphira
i m confused
 
i think only last
cant say for sure
havent worked on that either :P
 
@Shubhank bhai kya haal hai??
 
all
@Shubhank haan
 
hey @all
7 mins ago, by Erum Hannan
if i have one model class now on evry button click i m saving data in my model class means on 5 times button click i have saved 5 times different data in my model class will all these data be present in my model class or will be the only last data in my model class?
asnwer this^
plz
 
all
@Saphira last one would save, you must use arraylist of model class object type
and save evry object in that arraylist
 
@ErumHannan ^
 
@iAnum hi
 
4:51 PM
5 hours ago, by Shubhank
1
Q: Multiple MediaPlayers do not work on Nexus 5

Oliver BudiardjoI am building an app that uses two media players to play two audio files at the same time. This works fine on my Samsung Galaxy S3 device, but when I run it on a Nexus 5 the audio becomes fragmented / un-listenable. I am wondering wether using two media players concurrently is possible on the Ne...

how to proceed with this one @all
 
Shubhank
 
5:08 PM
haan
 
Kuch nahi bas yunhi
 
bc ye ashiqui 2 hai kya :D
 
:D
float anttomove = currentSpeed * Time.deltaTime;
transform.Translate(Vector3.down * anttomove , Space.World);
@Shubhank bhai Time,deltaTime ko meters per frame, meters per second me convert krna chatha hu can yu pls tell how can i do this
 
5:31 PM
dont kknow
 
5:55 PM
Good evening
 
6:07 PM
@all can u help me how can i pass arraylist to my next activity using parcelable
 
good evening
 
Shubhank, wassup?
 
hello @radical @ErumHannan
 
hello
 
how are you?
 
6:22 PM
hwllo
hello
 
good. and you?
 
fine
@ErumHannan how are you?
@radical busy?
 
fine
 
@ErumHannan not giving interviews nowadays ?
 
Abhi, kinda
 
6:25 PM
no
 
@ErumHannan got selected in any company?
@radical i have a query
float anttomove = currentSpeed * Time.deltaTime;
transform.Translate(Vector3.down * anttomove , Space.World);
 
@radical i have made class that implements parcelable ....now i am inserting around 5 objects in arraylist now how will i send this list to another activity
 
Erum, I don't know. I would have to look at the documentation for that
Erum, I haven't worked much with android
 
in this Time.deltaTime is meters per frame, i want to change it to meters per second
can yu tell how may i do this?
 
what makes you think that Time.deltaTime is "meters per frame"?
 
6:28 PM
Hey guys, hope you are well - i need some help, plz read my problem here: stackoverflow.com/questions/25583868/…
 
When you multiply with Time.deltaTime you essentially express: I want to move this object 10 meters per second instead of 10 meters per frame
 
yeah, but that doesn't mean that Time itself is in meters per frame!
 
The time in seconds it took to complete last frame
 
"Description

The time in seconds it took to complete the last frame "
 
its proper definition
 
6:30 PM
yeah, so, what is the unit of Time.deltaTime?
 
seconds per frame
 
??
1 min ago, by radical
"Description

The time in seconds it took to complete the last frame "
 
1 hour ago, by Unity Beginner
float anttomove = currentSpeed * Time.deltaTime;
transform.Translate(Vector3.down * anttomove , Space.World);
i.e the seconds(time) it took to complete last frame
 
right.. but the unit is still "seconds" here, not "seconds per frame"
 
6:33 PM
This is important, cos if you don't know what units your values are in, then you wouldn't know how to convert them to anything else
 
nothing much.. gonna play wolf among us
 
okk, cool
 
right
 
So, Time.deltaTime is in seconds. It's value is the number of seconds "..it took to complete the last frame"
 
i used this code
 
6:34 PM
now, what was your question again?
 
ok, thanks for clearing this
1 hour ago, by Unity Beginner
float anttomove = currentSpeed * Time.deltaTime;
transform.Translate(Vector3.down * anttomove , Space.World);
i used this code to move the player(ant) image from top to bottom
 
Shubhank, I'm adding paths(splines for eg.) for enemies to follow ..
 
sorry not clear
 
that wasn't for you, sorry
 
its moving but its moving lil fast
n can yu pls make the code clear to me
so that i may decrease the moving speed
@radical
 
6:37 PM
explain those two lines
 
float anttomove = currentSpeed * Time.deltaTime;
current speed that i set is 0
n Time.deltaTime is time took to complete last frame
this gives the number
float anttomove
transform.Translate(Vector3.down * anttomove , Space.World);
we use transform.Translate(); to move the object
Vector3.down is for downward direction
 
float anttomove = currentSpeed * Time.deltaTime;
okay, but what does this really do? what is anttomove?
what does it mean?
 
i think it will calculate the distance
 
what distance?
 
the antmoved with the speed in time
 
6:43 PM
okay, yeah.. the distance that the ant moved in the given time (time.deltaTime)
 
5 mins ago, by Unity Beginner
transform.Translate(Vector3.down * anttomove , Space.World);
we use transform.Translate(); to move the object
Vector3.down is for downward direction
 
yeah, it's value is (0, -1, 0)
 
sorry can yu pls explain this
i dont know regarding this
 
hm you will have to read up on basic coord geometry
but essentially, this is (x, y, z), and y axis being vertical. So, +y goes upwards and -y goes downwards
 
nah i got this
but i didn't get how the value is (0, -1, 0)
 
6:47 PM
(x, y, z) .. up will be (0, 1, 0) and down will be (0, -1, 0)
 
right (1,0,0)
ok it passes the value in this way
got
transform.Translate(Vector3.down * anttomove , Space.World);
so it will multiply these values with anttomove
 
Hm i was trying to explain that, but it would be better if you actually refresh that. You must have studied this in school+college
essentially, it is a direction vector (in this case)..like "forward" would be a direction or "to your right side" would be a direction.. for you
 
so, if want you to move 2 steps forward, then you can express it as "2 * forward" or "2 * direction"
if i told you to move to your right side, then "2 * right" ..
 
n we use Vector3 for this?
 
6:52 PM
if you imagine this on a graph, with your original position at the origin (0, 0, 0), then you can see if the direction is (0, 1, 0), up, .. and you do 2 * (0, 1, 0) == (0, 2, 0).. then that point is 2 units above your current position.
better to read it up properly.. i can't go in full detail here, and you would be able to refresh it easily
 
thanks for clearing this
fully cleared
 
hm
Vector3 is required for representing a point in 3d space
 
ok
i read regarding Space.World
but i didn't understand this
 
you will have to read up on basics
 
If relativeTo is Space.World the movement is applied relative to the world coordinate system.
 
6:55 PM
yeah
 
this line is given in the basics
 
local space is like "relative to myself"
 
it will move without any stoppage
ok
 
..
 
6:57 PM
hm better to read up. I don't want to give bad examples :p
you seem to know this stuff already, just need a refresher
hm
 
float anttomove = currentSpeed * (Time.deltaTime/50);
		transform.Translate((Vector3.down * anttomove) , Space.World)
tried this but affecting large
 
why are you doing that?
you want to slow it down?
 
which means that you want to reduce the amount of distance that it moves per frame?
 
7:01 PM
what does that distance depend on?
 
speed*time
 
what can you vary here?
what can you change in that?
 
the speed that i defined is 0 in inspector
so i may reduce the time
 
if speed is zero and distance = speed * time, then won't distance always be zero?
 
yes you are right
 
7:04 PM
no, you can't change that time. It tells you the amount of time for last frame.. it is the simulation time
 
you are not applying yourself
 
radical i have 1 more query that needs to be clear before this
 
so, speed is the only thing that you can vary
yeah?
 
i declared min n max speed to 0 in inspector
public float minSpeed ;
	public float maxSpeed;

	private float currentSpeed ;
	private float pos ;


	void Update () {
		currentSpeed = Random.Range(minSpeed , maxSpeed);

		float anttomove = currentSpeed * (Time.deltaTime/50);
		transform.Translate((Vector3.down * anttomove) , Space.World);
	}
this is the whole code that i am using
in this its taking the speed that will always come 0
cos as i said
i declared min n max speed to 0 in inspector
 
7:07 PM
hm okay, then how is the object moving at all?
 
my question wasn't a yes/no question :/
anyway..
Like I was saying.. you can vary speed, so, vary that to make it go faster or slower
 
more speed ==> faster (!), less speed ==> slower :p
 
sorry i though you said yeah? n allowed me ask question
 
7:10 PM
what was that "yes" for?
 
that for yes we can vary speed
 
"allowed".. you don't need permission
 
sorry the yes was for
4 mins ago, by radical
hm okay, then how is the object moving at all?
 
yeah, so that question isn't a yes/no question!
 
7:12 PM
anyhow.. now you know how to control the speed
np, leave it
 
ok
sorry but no
that is the target that i want to do
 
we were discussing that you need to reduce the distance, and you said that distance depends on speed and time
and I told you can you can't vary the time here
So.. distance = speed * time
 
time is constant here, .. how do you think you can reduce distance?
and i told the solution also, earlier
 
by decraesing the speed
 
7:16 PM
excellent. so, done
 
float anttomove = currentSpeed/2 * Time.deltaTime;
but it is toh moved
i have to think something else
 
why wouldn't it move?
 
ok i try this
 
play around with the values and see how it affects things
 
float anttomove = currentSpeed/200 * Time.deltaTime;
		transform.Translate((Vector3.down * anttomove) , Space.World
still the same speed
 
7:20 PM
your currentSpeed itself is changing in every frame
 
i want to use seconds per meter in place of seconds per frame
can i do this?
 
what?
where?
meters per second?
 
ha ha radical you are the best :D
 
Piyush, I'm afraid to ask.. why?
 
When you multiply with Time.deltaTime you essentially express: I want to move this object 10 meters per second instead of 10 meters per frame
 
7:23 PM
doing so much efforts to explaining vector :D
 
oks it gives the value meters per frame
 
Piyush, yeah :/ he was testing me.. he has definitely studied that in school, grad etc
 
ha ha
 
what gives meters per frame?
 
15 mins ago, by radical
more speed ==> faster (!), less speed ==> slower :p
this one is hilarious :D
 
7:25 PM
When you multiply with Time.deltaTime you essentially express: I want to move this object 10 meters per second instead of 10 meters per frame
 
Abhi.. i know, i read that text that you keep quoting
 
this is line in description n i am not understanding the meaning of this
 
okay
you will have to definitely go back and refresh all this stuff. You will need this a lot in game dev
as for that line..
Update runs every frame
You are simulating your game world here
 
ok
this line says that it moves 10 meters in a frame
 
So, it tells you, "X secs passed in the last frame, please update the object with it's new position" (position is just an example)
 
7:28 PM
n i want it must move 10 meters in a second
 
remember the above as "A"
 
Vector3.down * distance ==> this will move your object by distance meters in the "Down" direction. correct? (don't answer)
 
function Update () {
// Move the object 10 meters per second!
var translation : float = Time.deltaTime * 10;
transform.Translate (0, 0, translation);
}
read the comment part :D
 
@radical ok cleared
 
7:31 PM
um.. i wasn't finished. hm okay
anyway
 
ok cleared @PiyushMishra
 
hm
 
yes i know
 
anyway, so, you know what to do then
 
yes n trying also
but not able to decrease the speed
 
7:33 PM
able to or not able to?
 
float anttomove = currentSpeed/200 * Time.deltaTime;
transform.Translate((Vector3.down * anttomove) , Space.World);
used this code
 
repeating myself, again.. your currentSpeed is changing every frame. we don't know your min/max, so we don't know what is happening here. Hence, you will have to debug yourself
Easy way to check.. at the end up every update, print anttomove(distance) and see if that is changing when you vary the speed
 
ok i do this
float anttomove = currentSpeed/200 * Time.deltaTime;
		Debug.Log ("speed "+anttomove);
		transform.Translate((Vector3.down * anttomove) , Space.World);
got speed 0
 
:(
is anttomove your speed?
 
its distance
 
7:40 PM
for now, remove that random() call and set currentSpeed to a fixed value
like 100, then try
then change 100 to 200
 
float anttomove = currentSpeed/200 * Time.deltaTime;
		Debug.Log ("speed "+currentSpeed/200);
		transform.Translate((Vector3.down * anttomove) , Space.World)
speed 0
 
btw, if anttomove is 0, then your object shouldn't be moving at all
 
yes i was
asking this to you earlier also
 
you haven't told us what currentSpeed is.. cos it depends on min/max, which you haven't told us about. Hence, I can't help you!
7 mins ago, by radical
repeating myself, again.. your currentSpeed is changing every frame. we don't know your min/max, so we don't know what is happening here. Hence, you will have to debug yourself
 
i told min n amx is 0
 
7:43 PM
currentSpeed = Random.Range(minSpeed , maxSpeed);
 
36 mins ago, by Unity Beginner
in this its taking the speed that will always come 0
 
if min and max is zero, then what will currentSpeed be?
zero. so, how is the object moving at all?
do you have other scripts on the object
 
36 mins ago, by Unity Beginner
cos as i said
i declared min n max speed to 0 in inspector
 
You should start simple. That is why I was suggesting (for the last time) that try with a fixed value first
 
no
i used rigidbody2d
 
7:44 PM
hmph!
 
remove the rigidbody if you want to control the object yourself
 
there is another option, but for now .. do that
 
removed
 
7:45 PM
now try again! Your object shouldn't move at all
 
not moving
 
excellent
now, try setting a fixed value for currentSpeed
remove that statement with Random
 
radical aapke charan kaha hai
thanks hogya
 
hm good
now, i'm done!
 
actually i am making a small demo game antsmasher
in this a single ant is coming
 
7:49 PM
good luck
 
i want the ants must come in large number
n maintaining time gap
guide pls what must i do
?
 
get one ant working first
and please google, try things out, try to understand the code, play with it, experiment etc.
ask @PiyushMishra, he can guide you about how to learn!
 
this one ant is moving perfectly as i want
i want to tell something
jbb koi muje sunata hai na
then i realise where i am n keeda jag jata hai ki now i have to do hardwork n now i have to become something
so sometimes jaan ke sunne ka mann b krta hai ajkal
@radical as now i'll do
@PiyushMishra how are you bro?
 
anyone of islamabad ?
 
.
@ErumHannan
 
7:58 PM
g'night
 
good night
 
good night
@UnityBeginner i am fine abhi
 
howzzz arab country?
 
all well
 
any speciality of there?
 
8:03 PM
weather
@ErumHannan are you going to islamabad
 
no no
because of situation of islamabad i was asking
 
what situation?
terrorist attack?
 
you mean on going rally and political changes
 
@PiyushMishra is it hot or cold?
 
@UnityBeginner its so cold ki bas baraf hi nahi padti yahan pe
 
8:08 PM
n food there will be mostly non-veg
 
hmm full of vegetables and fruits
 
means veg also
great
..
good night...:)
 
ha ha
good night to all
 
 
3 hours later…
11:12 PM
@Shubhank han ::D
 

« first day (528 days earlier)      last day (3455 days later) »