Gamua / Flappy-Starling

Remake of "Flappy Bird" as a simple example of how to create a game with Starling.
The Unlicense
10 stars 2 forks source link

Initializer type Vector.<starling.textures.Texture> is not assignable #2

Open Shaunmax opened 1 year ago

Shaunmax commented 1 year ago

Hello @PrimaryFeather ,

I was trying to run the flappy starling project and I am getting this weird error : Initializer type Vector. is not assignable to variable type Vector.

in World.as image

what could be wrong?

PrimaryFeather commented 1 year ago

What a strange error – at first glance somehow makes no sense! I'll look into it as soon as I can squeeze it in.

PrimaryFeather commented 1 year ago

I just tried this with the latest version of IntelliJ IDEA and the latest AIR SDK, and I'm getting the same error. Baffles me!

Especially since it doesn't seem to happen in other projects. These lines of code are part of the MovieScene in the official Starling demo.

var frames:Vector.<Texture> = Game.assets.getTextures("flight");
_movie = new MovieClip(frames, 15);

It doesn't cause any error or warning there. As far as I am concerned, these lines are doing exactly the same thing. WTF?!