Rogue Reborn - Working with dragging (beginning stages of planning)

Subscribers:
2,140
Published on ● Video Link: https://www.youtube.com/watch?v=bD2im74j6cs



Duration: 0:26
124 views
1


This is just a demonstration of how the dragging works with elements in the game GUI.

Google V8 + Rogue Reborn as always.

The script to run this:

var image = new gui.Image("textures/mic/metal/grate01_diff.jpg", 0, 0, 100, 100);

image.mousedrag(function (mx, my, button) {
this.x = mx;
this.y = my;
});

Very simple and works as expected.







Tags:
Google V8
Rogue Reborn