• Game Maker - Discussion
    132 replies, posted
[img]http://i.imgur.com/qR8Jfde.png[/img] It doesnt recognize the <>s
[QUOTE=Vilusia;44627498][img]http://i.imgur.com/qR8Jfde.png[img][/QUOTE] Replace <left> and <right> with the image number in your sprite. Go into the sprite editor and check what the image numbers it displays is [img]http://i.imgur.com/YI4Tki6.png[/img] Say image zero is your left image, you'd change: [code]player.image_index == <left>[/code] to [code]player.image_index == 0[/code] Note that the image number starts at zero like in the sprite editor view.
Oh, I feel dumb now.
[QUOTE=Vilusia;44627559]Oh, I feel dumb now.[/QUOTE] Does it work? Do you understand what the code does?
[QUOTE=billi999;44627574]Does it work? Do you understand what the code does?[/QUOTE] Yes I understand what it does, it's still off though. I changed it from image index to sprite index since my sprites are animated. It's off no matter what numbers I have it set to.
[QUOTE=Vilusia;44627607]Yes I understand what it does, it's still off though. I changed it from image index to sprite index since my sprites are animated. It's off no matter what numbers I have it set to.[/QUOTE] Off in what way? so you have left animated and right animated in separate sprites? If you're using sprite_index, I wouldn't recommend using numbers. Replace the numbers with the name of the sprite instead.
[QUOTE=billi999;44627622]Off in what way? so you have left animated and right animated in separate sprites? If you're using sprite_index, I wouldn't recommend using numbers. Replace the numbers with the name of the sprite instead.[/QUOTE] Yeah I know that. I have it set to that. I know GM pretty well, it's just this for some reason is throwing me off. Edit: It was the X and Y center of the sprite. It was off on the second sprite. I got it now. Thanks for the help. [editline]23rd April 2014[/editline] [img]https://dl.dropboxusercontent.com/u/36159879/fixed.gif[/img]
Seems like it was down to you fixing it in the end but thanks anyway. Good luck with your development, looks to be an interesting concept so far.
I'm planning on making a rampage type game where a super scientist goes mad and attacks cities. You end up getting various vehicles and upgrades. Idk if I'll continue all the way through with it.
Oh wow, this brings back memories. I used to mess around in it back around 2008. Too bad I never actually got anything done with it, just spent most of my time making shoddy Guitar Hero and Mario clones and for some reason digital clocks/timers. I should mess around in GM:Studio to see how much it's changed since then.
Here is some progress of my game: Bug: [video=youtube;5gK4iprMEr4]http://www.youtube.com/watch?v=5gK4iprMEr4[/video] Fixed Bug: [video=youtube;gBd3EAcintU]http://www.youtube.com/watch?v=gBd3EAcintU[/video] I made a system so it should be easy to add more vehicles later.
[IMG]http://i.imgur.com/WMOLRc2.png[/IMG] So I started working on a top-down engine. There's a few games I've been wanting to make using this perspective so this seems like a good start. Edit: [img]http://i.imgur.com/0zGwKjm.png[/img] Eheheh
Sorry, you need to Log In to post a reply to this thread.