|
Hi
how I can move any Object on screen in WinForm ?
When I press right -> the object will move right until i'll press any other arrow key
and when I press left <- the object will move left until i'll press any other arrow key
The object all the ...
Started by Gold on
, 4 posts
by 4 people.
Answer Snippets (Read the full thread at stackoverflow):
And when the timer ticks, adjust the position....
In your OnPaint method you'll update the position of an object based on how much time has elapsed since the last time your OnPaint method.
Loop and allow you to update the screen pretty quickly.
|
|
How would one go about detecting if two images on the screen (form) were touching each other in C#?
I have a little game where I have to find out if two objects (images of objects) are touching each other.
Is there a simple way to implement this?
Started by Tony on
, 4 posts
by 4 people.
Answer Snippets (Read the full thread at stackoverflow):
The quickest way is to treat each object as a circle with a radius that is generally close to its.
|
|
How do I get the 2D screen coordinates of a 3D object when using Papervision 2.0 (Great White)? I've read that following properties should return the screen coords but these always return 0.
myDisplayObject3D.screen.x myDisplayObject3D.screen.y
I've also...
Started by Groady on
, 3 posts
by 3 people.
Answer Snippets (Read the full thread at stackoverflow):
Is your 3d object added to the scene ?
In the online articles ?
Turns out I was attempting to read the values immediately after adding the object to the scene.
Screen.x and screen.y should work.
|
Ask your Facebook Friends
|
I am tasked with making a sun/moon object flow across the screen throughout a time-span (as it would in a regular day). One of the options available to me is to use a " billboard ", which is a quad that is always facing the camera.
I have yet to use many...
Started by 4501 on
, 4 posts
by 4 people.
Answer Snippets (Read the full thread at stackoverflow):
I never did that with DirectX vertex and instead of a point, ... .
The easiest way to do a screen aligned quad is by using Point Sprites with texture rewrite.
From the centre point of the world-coordinates you want to render the object in.
|
|
I would like to zoom in/out an UIImage object when the user performs the standard pinch action on my application. I'm currently using a UIImageView to display my image, if that detail helps in any way.
I'm trying to figure out how to do this, but no such...
Started by jpm on
, 5 posts
by 5 people.
Answer Snippets (Read the full thread at stackoverflow):
The more complcated way to do this is to use touchesBegan... .
The simplest way to do this, if all you want is pinch zooming, is to place your image inside a UIWebView (write small amount of html wrapper code, reference your image, and you're basically done) .
|
|
There are a few ways out there in the internet to centre something on the screen via css (-ve margins, table-cell hack etc). I was quite happy with that until now when I wanted to use native gwt2.0 layout panels/widgets. Imagine you want to do a "loading...
Started by atamur on
, 3 posts
by 3 people.
Answer Snippets (Read the full thread at stackoverflow):
In the end I was able to use general css with the help of HTMLPanel:
<ui:UiBinder xmlns:ui='urn:ui:com.google.gwt.uibinder' xmlns:g='urn:import:com.google.gwt.user.client.ui'> <ui:with field='res' type='ru.atamur.resources.CommonBundle'/> ... .
|
|
Package { import flash.display.*; import flash.events.*; import flash.net.*; public class exp1 extends Sprite { var directionX:Number = 5; var directionY:Number = Math.random()*5; public function exp1() { var loader:Loader = new Loader(); var request ...
Started by Varun on
, 4 posts
by 4 people.
Answer Snippets (Read the full thread at stackoverflow):
YourObject.StopMovingDamnIt(yAxis, 30)
Psuedocode:
if y <= 30 then velocity = 0
1 - Your IF is not even in your moveRecA function 2 - test your target.y and remove the listener when you reach the desire value:
Take into account that your Y may not... .
|
|
Hello everyone,
I'm building a multiplayer game using Flash/Flex for the client and FluorineFX (just like FCS/FMS except it is written in .NET) on the server-side. My questions are regarding the use and performance of shared objects over RTMP protocol...
Started by Lusid on
, 3 posts
by 3 people.
Answer Snippets (Read the full thread at stackoverflow):
Of course, if a user hasn....
object has a shared object, but if you really need to connect/disconnect each time, then I'm afraid, if the objects are not too complex, using one Remote Object doesn't seem too much of a problem...
|
|
I have created a few sprites using a spriteclass and I have loaded them into an array. In my app, I loop over the array checking for particular conditions (position, etc.). I want to create an explosion method that I can pass one of these objects to and...
Started by SonnyBurnette on
, 3 posts
by 3 people.
Answer Snippets (Read the full thread at stackoverflow):
} // usage [self explosion: object radius:10.0f];
Everything before:10.0f];
Why not make your object....
Consider < explosionRadius) ...
SomeObject { } // usage [self explosion: object];
For two params things are a bit more involved.
|
|
I've had some experience developing for the iPhone but am entirely self taught and am trying to improve my practices. This is a question that is probably pretty introductory to programming.
What is the best way (or is it possible) to maintain instance...
Started by Eric on
, 6 posts
by 6 people.
Answer Snippets (Read the full thread at stackoverflow):
A singleton-like object that everybody shares is a good way to go; you get all the normal Obj-C goodness (mem.
|