Re: Trying to animate sprite using DirectX9 Programming Software Development by Pavel_11 Hello, it is unneccessarily to use right movex or leftmovex , because it is to much variables. You should to use one variable movex to make it with minus or plus sign in your update function; by pressing left or right keys; because the one thing which is changable is a picture; I mean in global sense; variables like leftx, right x should be one… Re: Win32-Passing RECT type by value results on weird numbers Programming Software Development by Icebone1000 …*&pDevice_p, ID3D11DeviceContext *&pDIContext_p, IDXGISwapChain *&pSC_p, RECT wndrect_p, ID3D11RenderTargetView *&pRTV_p ); ... //Heres where I call…*&pDevice_p, ID3D11DeviceContext *&pDIContext_p, IDXGISwapChain *&pSC_p, RECT wndrect_p, ID3D11RenderTargetView *&pRTV_p ){ //at the first moment… Re: Win32-Passing RECT type by value results on weird numbers Programming Software Development by Icebone1000 … encountered such problem. Are you sure you are using the RECT right (ie . instead of ->)? And besides, why do you… variable value for the LONG x is ok, just the RECT watched values get weird....and..o.o just when pass…, the hexa values are also displayed all different for the rect...and just when passed by value...@.@ Win32-Passing RECT type by value results on weird numbers Programming Software Development by Icebone1000 Hi, thats very weird..if I pass my RECT by reference notting wrong happens, bu if I pass by … it enters the function( NO MODIFICATIONS ARE MADE ON THE RECT ).. Is this a 64 bit issue? Im on a x64… click rect help Programming Software Development by wolfeater017 how do you get it in pygame so that when you click on a rect it will reset the window but only when you click on that certain rect Line-rect collision detection Programming Software Development by Chuckleluck Hello, I'm fairly new to programming, and I'm not exactly sure how to do line-rect collision detection. If it helps, I'm using SFML 2. Can someone explain to me how I would go about coding line-rect collision detection? Thanks in advance. Re: Win32-Passing RECT type by value results on weird numbers Programming Software Development by strmstn Yes that is weird, I have never encountered such problem. Are you sure you are using the RECT right (ie . instead of ->)? And besides, why do you want to pass it by value instead of reference? How to get the current opened menu Rect (hwnd) Programming Software Development by ashraf fawzy Hi all.... I need to get the current opened menu Rect ( Left - Top - Width - Height ) I tried to use GetActiveWindow , GetForegroundWindow … Re: about DrawText(): how use new lines\tabs in vertical center of the rect? Programming Software Development by cambalinho …the string(with DT_CALRECT flag) rectangle: RECT rect, textrect; GetClientRect(hwnd,&rect); DrawText(hdc,"hello world\nhi\…the top of hdc rectangle(rect): rect.top=rect.bottom/2-textrect.bottom/2;// remember the rect is, always, less than…\nhello my dog",-1, &rect, DT_CENTER | DT_EXPANDTABS); thanks for all Re: about DrawText(): how use new lines\tabs in vertical center of the rect? Programming Software Development by cambalinho …case WM_PAINT: HDC hdc; SIZE TextRect; RECT rect; GetClientRect(hwnd,&rect); PAINTSTRUCT a; hdc=BeginPaint(hwnd,&a…(hdc,"hello world\nhi",-1, &rect, DT_CENTER | DT_EXPANDTABS | DT_VCENTER); EndPaint(hwnd,&a… Code Working, Need a Way to Optimize it! Programming Software Development by Catalyst.X …0 Then Draw.DrawImage(image:=binoculars, rect:=rect) End If End If End If …0 Then Draw.DrawImage(image:=binoculars, rect:=rect) End If End If End If… Re: Code Working, Need a Way to Optimize it! Programming Software Development by Catalyst.X … 0 Then Draw.DrawImage(image:=jackhammer, rect:=rect) End If If System.String.Compare(…0 Then Draw.DrawImage(image:=binoculars, rect:=rect) End If End If Next index… using binascii Programming Software Development by mruane rect[2]*100, self.rect[3]*100) self.collision_groups = [] def set_pos(self, x, y): self.r.left = x*100 self.r.top = y*100 def …self.rect.y, actor.rect.w, actor.rect.h) class Level: def __init__(self, level=level1): self.level = level self.x = 0 self.y = -16 for … onclick? Digital Media UI / UX Design by thejester1975 …;22.gif"/> <area shape="rect" coords="152,137,223,201" …23.gif"/> <area shape="rect" coords="228,137,299,201" …24.gif"/> <area shape="rect" coords="303,138,374,202" …54.gif" /> <area shape="rect" coords="304,342,373,405" href… Help with a Pong game Programming Software Development by redyugi …-in bounds if self.rect.colliderect(disp.rect): self.rect.y = disp.rect.bottom elif self.rect.colliderect(bottomrect): self.rect.bottom = bottomrect.top…0)) icon.set_alpha(255) pygame.display.set_icon(icon) bottomrect = pygame.rect.Rect(0, size[1], size[0], 1) # Create/load background… My game starts lagging more and more after each kill Programming Software Development by Necrozze …: if PlayerRect.left <= rect [0] + rect[2] and PlayerRect.left >= rect[0] and PlayerRect.y < rect[1] + rect[3] and PlayerRect.y…[2],roof[1]),1) for rect in rects: pygame.draw.rect(screen,(255,0,0),(rect[0],rect[1],rect[2],rect[3]),0) for i… What about my Pong game? Programming Software Development by João Victor …self.rect = self.image.get_rect(x = self.rect.x, y = self.rect.y, top = self.rect.top, bottom = self.rect.bottom, left = self.rect.left… Black Screen on Pygame until I close it! Programming Software Development by Urbandude23 …white) draw_miner(screen,x_coord,y_coord) pygame.draw.rect(screen,green,[20,20,50,50],2) pygame.draw…) #breakafter8 pygame.draw.rect(screen,green,[120,120,50,50],2) pygame.draw.rect(screen,green,[170,170…,[220,370,50,50],2) pygame.draw.rect(screen,green,[270,320,50,50],2) … VB.Net How to rotate a rectangle by mouse click and drag Programming Software Development by Maurice_4 …PosSizableRect.RightMiddle Return Me.CreateRectSizableNode(Me.rect.X + Me.rect.Width, Me.rect.Y + Me.rect.Height / 2) Case UserRect.….RightBottom Return Me.CreateRectSizableNode(Me.rect.X + Me.rect.Width, Me.rect.Y + Me.rect.Height) Case UserRect.PosSizableRect.BottomMiddle… Collision Detection Programming Software Development by balekic …(SDL_Rect& rect) { rect.x = m_x; rect.y = m_y; rect.w = batWidth; rect.h = batHeight…rect) { rect.x = m_x; rect.y = m_y; rect.w = brickWidth; rect.h = brickHeight; } void draw(SDL_Surface* screen) { SDL_Rect rect; rect.x = m_x + 10; rect Image Map Rollover error Programming Web Development by gj6kings … (visStr == 'hide') visStr = 'hidden'; document.all.onLayer.style.clip ="rect(" + clTop + " " + clRight + " " + clBot + &…onLayer\']','show',10)"> <area shape="rect" coords="329,1,356,28" …onLayer\']','show',11)"> <area shape="rect" coords="358,1,382,28" … assist on this exception Programming Software Development by fatjoy25 … drawScrollPane; JLabel line, color, paint,kid,cil; JButton circle, rect, poly, ellipse; JComboBox cbLine, cbFill; GridBagLayout g; GridBagConstraints gbc… drawScrollPane; JLabel line, color, paint,kid,cil; JButton circle, rect, poly, ellipse; JComboBox cbLine, cbFill; GridBagLayout g; GridBagConstraints gbc… Program Working, Need to draw this map in a scrollable window? Programming Software Development by Catalyst.X …quot;) = 0 Then Draw.DrawImage(image:=boulder, rect:=rect) ElseIf System.String.Compare(aryCellID(index).Context, "…") = 0 Then Draw.DrawImage(image:=jackhammer, rect:=rect) ElseIf System.String.Compare(aryCellID(index).Context, "… Maze problem Programming by rhys1619 … move_single_axis(self, dx, dy): # Move the rect self.rect.x += dx self.rect.y += dy # If you collide with a…pygame.draw.rect(gameDisplay, green, wall.rect) pygame.draw.rect(gameDisplay, red, end_rect) pygame.draw.rect(gameDisplay, white, player.rect) pygame.… Re: Maze problem Programming by Gribouillis …def move_single_axis(self, dx, dy): # Move the rect self.rect.x += dx self.rect.y += dy # If you collide with a…pygame.draw.rect(gameDisplay, green, wall.rect) pygame.draw.rect(gameDisplay, red, end_rect) pygame.draw.rect(gameDisplay, white, player.rect) pygame.display… adding pictures / sprites to my game Programming by rhys1619 …def move_single_axis(self, dx, dy): # Move the rect self.rect.x += dx self.rect.y += dy # If you collide with a…pygame.draw.rect(gameDisplay, green, wall.rect) pygame.draw.rect(gameDisplay, red, end_rect) pygame.draw.rect(gameDisplay, white, player.rect) pygame.display… Pygame menus Programming by rhys_2 …object): def __init__(self, pos): walls.append(self) self.rect = pygame.Rect(pos[0], pos[1], 40, 40) #Initialise pygame …walls: pygame.draw.rect(gameDisplay, red, wall.rect) pygame.draw.rect(gameDisplay, black, end_rect) pygame.draw.rect(gameDisplay, white, player.rect) pygame.display.… pygame menu Programming Game Development by rhys_2 …object): def __init__(self, pos): walls.append(self) self.rect = pygame.Rect(pos[0], pos[1], 40, 40) #Initialise pygame …walls: pygame.draw.rect(gameDisplay, red, wall.rect) pygame.draw.rect(gameDisplay, black, end_rect) pygame.draw.rect(gameDisplay, white, player.rect) pygame.display.… Math Program Help Programming Software Development by Roadphantom13 …width, -height) rect = Rectangle(corner, corner2) rect.setFill(color) rect.setWidth(2) rect.setOutline("black") rect.draw(win) corner3 …width, -height) rect = Rectangle(corner, corner2) rect.setFill(color) rect.setWidth(2) rect.setOutline("black") rect.draw(win) corner3 … Issue with DirectX Programming Game Development by CoolGamer48 …int rect_width,int rect_height) { RECT rect; rect.left = x; rect.top = y; rect.right = rect.left + rect_width; rect.bottom = rect.top + rect_height; long format…int rect_width,int rect_height) { RECT rect; rect.left = x; rect.top = y; rect.right = rect.left + rect_width; rect.bottom = rect.top + rect_height; if(BeginScene…