Welcome, Guest. Please login or register. Did you miss your activation email?

Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - Wuwus1

Pages: [1]
1
General / Re: Resizing window and scaling objects.
« on: January 14, 2018, 11:07:24 am »
Thank for the suggestion i will definitely go through those tutorials.  :)

2
General / Resizing window and scaling objects.
« on: January 13, 2018, 10:44:32 pm »
I started my own project a while ago and can't pass over one problem. I created my own top bar interface with action buttons, resizing and everything. While resizing the window everything i draw(in this window) is resizing too but i want everything to be its orginal size. For example the top bar height is 5/100 of the screen height that my app is displayed (for me it is 30px). If i resize the window the top bar is resizing too (for me it is 52px now). But if i print out the height of the top bar it's saying that the top bar height is 30px. How do i fix it. Do i need to change the view? Or scale everything?
I attach a video to make the whole problem clear because i know my english is not the best ;)
Link to yt: https://www.youtube.com/watch?v=3WinkG20Ueo&feature=youtu.be

3
Graphics / Re: Draw function problem.
« on: September 14, 2017, 08:52:48 pm »
So i can't run it on a potato pc?

4
Graphics / Draw function problem.
« on: September 14, 2017, 08:22:45 pm »
First im sorry for my english i know it's not very good but let's go to the topic. I was writing my new game and one day i was trying to start it on my sister's pc. The game was very slow and cpu usage went up to 30% on this particular app. The next day i brought it to school and the same happened cpu usage was very high and the game was slow. I was thinking what is causing that problem and i disable the overloaded draw function for the background and it worked, the cpu usage was now 6%, then i disable the overloaded draw function for the player sprite and the cpu usage went down to 0.2%. I noticed one more thing https://imgur.com/H1PEx24. By the way on my own pc the game is fine the cpu usage is 0,1%. Ps i used the Window.setFramerateLimit(60) function.

Pages: [1]
anything