Hello Guest, please login or register.
Did you miss your activation email?
Login with username, password and session length.

Pages: [1]   Go Down

Author Topic: Drag and Drop "Change Sprite" not working?  (Read 1101 times)

0 Members and 1 Guest are viewing this topic.
Drag and Drop "Change Sprite" not working?
« on: February 27, 2007, 09:46:29 pm »
  • Lionfish App dev
  • *
  • Reputation: +1/-0
  • Offline Offline
  • Gender: Male
  • Posts: 3456
I've got an object that sets other objects sprites during cutscenes, but it seems to be setting the image speed wrong. It makes it 0 instead of 0.5. Why is going on? Thankoo.
« Last Edit: February 27, 2007, 10:19:48 pm by Moldorma »
Logged
  • Lionfish Apps
Re: Drag and Drop "Change Sprite" not working?
« Reply #1 on: February 27, 2007, 11:11:22 pm »
  • *
  • Reputation: +0/-0
  • Offline Offline
  • Posts: 562
Just use GML:
Code: [Select]
with(obj_name_here)image_speed=0.5;
Logged
Re: Drag and Drop "Change Sprite" not working?
« Reply #2 on: February 28, 2007, 12:54:43 am »
  • Lionfish App dev
  • *
  • Reputation: +1/-0
  • Offline Offline
  • Gender: Male
  • Posts: 3456
Didn't do a thing. Hmm...
Logged
  • Lionfish Apps

Goodnight

Once and future Captain
Re: Drag and Drop "Change Sprite" not working?
« Reply #3 on: February 28, 2007, 02:40:10 am »
  • With a Capital G
  • *
  • Reputation: +1/-0
  • Offline Offline
  • Gender: Male
  • Posts: 706
I think when you set a sprite using D&D there is an option for the subimage number.. Maybe that works like image_single instead of image_index, so you need to use -1 to make it animated.
Logged
Re: Drag and Drop "Change Sprite" not working?
« Reply #4 on: February 28, 2007, 02:58:48 am »
  • *
  • Reputation: +0/-0
  • Offline Offline
  • Posts: 562
I think when you set a sprite using D&D there is an option for the subimage number.. Maybe that works like image_single instead of image_index, so you need to use -1 to make it animated.
Ya, so instead of using the D&D, use:
Code: [Select]
(o)=instance_create(x,y,obj_name);
(o).image_speed=0.5;
(o).image_single=-1;
« Last Edit: March 03, 2007, 02:08:33 am by AoDC »
Logged
Pages: [1]   Go Up

 


Contact Us | Legal | Advertise Here
2013 © ZFGC, All Rights Reserved



Page created in 0.234 seconds with 48 queries.

anything