Remember me
You are here: HomeForumCyberix3D ForumGeneral Discussionnew twitter account.
Welcome, Guest
Username: Password: Remember me

TOPIC: Images for UI elements

Images for UI elements 8 years 4 months ago #503

  • Ganderoleg
  • Ganderoleg's Avatar
  • OFFLINE
  • Expert Boarder
  • Posts: 115
  • Thank you received: 12
I have no idea how to insert images for UI elements, images/textures for player's life or score? Is there some example or a tutorial, I didn’t find anything.

EDIT: Also I tried to change shooting from E to LMB but with no effect. Is it possible to shoot with LMB?
Last Edit: 8 years 4 months ago by Ganderoleg.
The administrator has disabled public write access.

Images for UI elements 8 years 4 months ago #506

  • Ganderoleg
  • Ganderoleg's Avatar
  • OFFLINE
  • Expert Boarder
  • Posts: 115
  • Thank you received: 12
I made a sort-of-a-gui using buttons and word-symbols, it's not a best thing but I think it's adequate. It's even a bit more interesting because you can click on UI elements and they react by changing the color, maybe I'll give them some function for fun :)
FakeGUI.jpg
The administrator has disabled public write access.

Images for UI elements 8 years 4 months ago #507

  • cyberix3d
  • cyberix3d's Avatar
  • OFFLINE
  • Administrator
  • Posts: 703
  • Thank you received: 697
2D images are not supported but we will add support for it soon.
We are also planning to add Mouse.isMouseDown variable to let you know when the mouse is down.
These two features will be probably finished next week.
Regards,
Cyberix3D team
Last Edit: 8 years 4 months ago by cyberix3d.
The administrator has disabled public write access.
The following user(s) said Thank You: Ganderoleg

Images for UI elements 8 years 4 months ago #508

  • Ganderoleg
  • Ganderoleg's Avatar
  • OFFLINE
  • Expert Boarder
  • Posts: 115
  • Thank you received: 12
That would be great, LMB for shooting is something that players generally expect. I think E-key is o.k. but it's amazing what stupid things people will find problematic, once I was almost spammed with messages because my 2D platform game didn't use SPACE for jump but used UP-ARROW :)
The administrator has disabled public write access.

Images for UI elements 8 years 4 months ago #509

  • cyberix3d
  • cyberix3d's Avatar
  • OFFLINE
  • Administrator
  • Posts: 703
  • Thank you received: 697
Hello Ganderoleg,
We have developed some new cool features that will help you with your game.
The features are currently available in the beta channel and you can check them via this link:
www.gamemaker3d.com/editor/beta.html

The first feature is what you have asked for, 2D images:
1_2016-07-28.jpg


We have also added Rotation, Pivot X and Pivot Y parameters for all the 2D elements:
2_2016-07-28.jpg


The 2nd feature is LMB and RMB variables. Here is a picture of how to use it:
3_2016-07-28.jpg


If you want to use Mouse Lock and LMB for shooting you have to be in fullscreen,
Therefore we have added "Force full screen" feature:
4.jpg


We have also improved the First Person Controller mouse movement, It is now much more accurate, faster and less laggy.
There is still a performance problem with the Camera Controller on Android, We will do our best to fix it in the future.

We are also planning to add "Sub model collision" option to the Camera Controller. This feature will add collision detection for the Weapon and prevent it from going through walls.

We also want to improve the shooting algorithm and make an example of a weapon with aiming target.

Please check these features and let us know if they suit your needs.
We will upload them to production next week.

Regards,
Cyberix3D team
Last Edit: 8 years 4 months ago by cyberix3d.
The administrator has disabled public write access.
The following user(s) said Thank You: ViraX, Ganderoleg

Images for UI elements 8 years 4 months ago #510

  • Ganderoleg
  • Ganderoleg's Avatar
  • OFFLINE
  • Expert Boarder
  • Posts: 115
  • Thank you received: 12
This is epic news, I already tested beta editor and the new features are working perfectly :) :)

I managed to display png image with transparency and models are reacting to LMB/RMB clicking. Also the great thing is that new mouse functionality is reacting to variables. I created a ‘lmb_rmb_var’ that turned on/off the ‘mouse_lock’ feature so that LMB and RMB can be used for other things in level too.

Sub model collision and more accurate aiming of the weapon would be very welcome, it could make gameplay much more enjoyable during the battles.
The administrator has disabled public write access.

Images for UI elements 8 years 4 months ago #519

  • cyberix3d
  • cyberix3d's Avatar
  • OFFLINE
  • Administrator
  • Posts: 703
  • Thank you received: 697
We have tried to develop the Sub Model Collision for the Camera Controller but it's too complicated so we decided to delay this task for now.

We found another solution for keeping the weapon out of walls by adding a new feature for the for the "Set Camera" command.
You can try it by adding a "Set Camera" command with
minDistance = 7

And also set the gun model with the following parameters:
x = 10
y = -10
z = 0
scaleX = 1
scaleY = 1
scaleZ = 1

The new "minDistance" camera feature will also prevent the enemy models for being clipped when you get too close to them.

All of the features are in production now, so you can test it in the main version.

Please let us know if it works.

Regards,
Cyberix3D team
The administrator has disabled public write access.
The following user(s) said Thank You: Ganderoleg

Images for UI elements 8 years 4 months ago #520

  • Ganderoleg
  • Ganderoleg's Avatar
  • OFFLINE
  • Expert Boarder
  • Posts: 115
  • Thank you received: 12
Wow the new beta editor is active :woohoo:

I just implemented my tests from beta editor mini-projects in my main project and they all work without a single problem :)

1. 2D images are visible and functioning correctly.
2. Camera movement is precise and non-smoothed.
3. Gun-model is not going through walls.
4. LMB and RMB are running great and also responding to variables.

This so much better that it's incredible. Thank you for this great improvement.
The administrator has disabled public write access.
Time to create page: 0.091 seconds