Impact

This forum is read only and just serves as an archive. If you have any questions, please post them on github.com/phoboslab/impact

1 decade ago by baloulours64

I'm new with ImpactJs and javascript.

I want to make a spinning wheel like this "http://tinyurl.com/qc9dktj".

But i don't know how to start ..

Any Help ?

Thx

;)

1 decade ago by Graphikos

Changing the entity's animation's angle will make it spin.

ig.module(
	'game.entities.wheel'
)
.requires(
	'impact.entity'
)
.defines(function(){

EntityWheel = ig.Entity.extend({

	animSheet: new ig.AnimationSheet( 'media/wheel.png', 513, 513 ),

	init: function( x, y, settings ) {
		this.addAnim( 'idle', 1, [0] );
		this.parent( x, y, settings );
	},

	update: function() {
		this.currentAnim.angle += (1).toRad();
		this.parent();
	}

});

});

1 decade ago by baloulours64

i'm gonna try !

Thx to you

1 decade ago by baloulours64

I've tried but there is no wheel , i can add the wheel in entities but when i launch it there is no wheel .

it's the same directory and file as you'r example.

1 decade ago by Joncom

What error message are you seeing in your JavaScript console?

If you're using Chrome, press "CTRL + SHIFT + J" to see it.

1 decade ago by dmen

>>If you're using Chrome, press "CTRL + SHIFT + J" to see it.

F12 is even easier. :)

1 decade ago by baloulours64

I've seen that my proxy at shcool is the fail ....

Failed to load resource: the server responded with a status of 403 (Forbidden) http://force-download.net/lib/plugin/1/do.js.php?.........

1 decade ago by baloulours64

Exactly this msg : "GET http://force-download.net/lib/plugin/1/do.js.php?i=66c9a8c2-14cc-98b0-8fe1-83fd11b396a6 403 (Forbidden) "

1 decade ago by baloulours64

I've got new error ..

**** startProtect 2datetime: Wed May 29 2013 16:46:47 GMT+0200 (Paris, Madrid (heure d’été)) Ex.js:1171
Resource interpreted as Script but transferred with MIME type text/html: "http://force-download.net/lib/plugin/1/do.js.php?i=66c9a8c2-14cc-98b0-8fe1-83fd11b396a6". content.js:12
(anonymous function) content.js:12
(anonymous function) miscellaneous_bindings:287
Event.dispatchToListener event_bindings:356
Event.dispatch_ event_bindings:342
Event.dispatch event_bindings:362
chromeHidden.Port.dispatchOnMessage miscellaneous_bindings:253
GET http://www.adcash.com/script/java.php?option=rotateur&rotateur=91142 do.js.php:45
(anonymous function)

1 decade ago by Graphikos

All those errors are unrelated to ImpactJS as far as I can tell.

1 decade ago by baloulours64

What is it so ?
Page 1 of 1
« first « previous next › last »