Powered by Invision Power Board

 
    Reply to this topicStart new topicStart Poll

> Changing subimages in GM6
Togo
Zephyra
Posted: Apr 15 2007, 08:27 PM
Quote Post


Quite enticing I must say
[*][*][*][*][*]
[*][*][*]

Group Icon
Group: Members
Posts: 1311
Member No.: 3176
Joined: 12-January 07

Status: (0d) [--]


How do you make it so when you click on an object, it changes the subimage of another object's sprite?


--------------------
QUOTE
(3:26:27 PM) Comrade Nystre: :3 gglmhpphglblglbl
(3:27:19 PM) Comrade Nystre: gglblbblblblblb?? :3

QUOTE
(4:27:43 PM) Raie: I AM INCREDIBLY MANLY
PMEmail PosterAOLMSN
Top
India
Char
Posted: Apr 16 2007, 04:05 AM
Quote Post


fad was bad
[M][*][*]

Group Icon
Group: Admins
Posts: 2123
Member No.: 2856
Joined: 25-October 06

Status: (0d) [--]


Let's say the first object is objButton, and the one who's subimage is going to be changed is objChangeme
CODE
objButton's click event:
Execute a peice of code -
objChangeme.image_index = (subimage number)

Easily changed.


--------------------
aa this broke


Make your own | If a level is breaking the rules, note the ID and PM me.
Reference (thanks Frogjester!)
PMEmail PosterUsers WebsiteAOLYahooMSN
Top
Togo
Zephyra
Posted: Apr 16 2007, 08:32 AM
Quote Post


Quite enticing I must say
[*][*][*][*][*]
[*][*][*]

Group Icon
Group: Members
Posts: 1311
Member No.: 3176
Joined: 12-January 07

Status: (0d) [--]


Okay, thanks. I tried it with D+D and it didn't work.


--------------------
QUOTE
(3:26:27 PM) Comrade Nystre: :3 gglmhpphglblglbl
(3:27:19 PM) Comrade Nystre: gglblbblblblblb?? :3

QUOTE
(4:27:43 PM) Raie: I AM INCREDIBLY MANLY
PMEmail PosterAOLMSN
Top
United States
Grant
Posted: Apr 16 2007, 11:17 AM
Quote Post


John Freeman said
[*][*][*][*][*]
[*][*][*]

Group Icon
Group: Members
Posts: 8260
Member No.: 2900
Joined: 31-October 06

Status: (0d) [--]


QUOTE (Pikaboo @ Apr 16 2007, 09:32 AM)
Okay, thanks. I tried it with D+D and it didn't work.

In D+D all you do is just have the action that changes the subimage apply to the object of your choice, rather than to "Self" or "Other".

Using a D+D "Set variable" action with obj_changeme.image_index as the variable will also work, I think.


--------------------
user posted image

QUOTE (oh youtube trolls)
u guys r retarded hippocrates

QUOTE (Piemanthe3rd)
Pie is not random. I wish people would realize this.
PMEmail PosterUsers WebsiteAOLMSN
Top
India
Char
Posted: Apr 16 2007, 11:44 AM
Quote Post


fad was bad
[M][*][*]

Group Icon
Group: Admins
Posts: 2123
Member No.: 2856
Joined: 25-October 06

Status: (0d) [--]


QUOTE (Grant @ Apr 16 2007, 09:47 PM)
In D+D all you do is just have the action that changes the subimage apply to the object of your choice, rather than to "Self" or "Other".

Using a D+D "Set variable" action with obj_changeme.image_index as the variable will also work, I think.

In the D+D "set variable" you can find "applies to", below that there will be object. Check it, then select objChangeme from the list. Then set image_index to whatever.


--------------------
aa this broke


Make your own | If a level is breaking the rules, note the ID and PM me.
Reference (thanks Frogjester!)
PMEmail PosterUsers WebsiteAOLYahooMSN
Top
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

  Topic Options Topic Options Reply to this topicStart new topicStart Poll

 




[ Script Execution time: 0.0421 ]   [ 14 queries used ]   [ GZIP Enabled ]   [ Server Load: 0.11 ]