| |
How can I make things only appear in certain views, (GM)
JosJuice |
|

Threw an apple at Caterpie! It's a good pizza topping
![Super Happy Heart Badge [*]](https://archive.mfgg.net/html/badges/shappyheart.gif) ![Minigame Comp Third Place Badge (1) [*]](https://archive.mfgg.net/html/badges/mct1.gif)

Group: Members
Posts: 318
Member No.: 4596
Joined: 19-October 07
Status: (0d)
![[--]](style_images/mfgg2_skin/warn_nosuspend.gif)

|
| QUOTE (fiDumppi @ Jun 3 2009, 04:08 PM) | Try this in the object's Draw event:
| CODE | draw_sprite_ext(sprite_index,image_index,x,y,image_xscale,image_yscale,0,0,image_alpha) if view_current=0 {image_alpha=0} else {image_alpha=1}
|
This makes the object invisible in View 0 and visible in the rest of the views.
Hope that helps! |
Shouldn't it be more like this?
| CODE | if view_current=0 {image_alpha=0} else {image_alpha=1} draw_sprite_ext(sprite_index,image_index,x,y,image_xscale,image_yscale,0,0,image_alpha) |
This post has been edited by JosJuice on Jun 3 2009, 09:53 AM
--------------------
| QUOTE (Darkyoshi @ Dec 19 2008, 05:09 PM) | | I remading it to make a Free-Glitch version |
| QUOTE (Keyser Soze @ Dec 21 2008, 12:28 AM) | | Thank god I thought I was going to have to PAY for my glitches! |
| QUOTE | | You know what they say toast is toast. ;3 |
|
|
|
JosJuice |
|

Threw an apple at Caterpie! It's a good pizza topping
![Super Happy Heart Badge [*]](https://archive.mfgg.net/html/badges/shappyheart.gif) ![Minigame Comp Third Place Badge (1) [*]](https://archive.mfgg.net/html/badges/mct1.gif)

Group: Members
Posts: 318
Member No.: 4596
Joined: 19-October 07
Status: (0d)
![[--]](style_images/mfgg2_skin/warn_nosuspend.gif)

|
| QUOTE (Char @ Jun 3 2009, 06:12 PM) | | more like draw_set_alpha(0) and draw_set_alpha(1) |
draw_sprite_ext(sprite_index,image_index,x,y,image_xscale,image_yscale,0,0,image_alpha)
--------------------
| QUOTE (Darkyoshi @ Dec 19 2008, 05:09 PM) | | I remading it to make a Free-Glitch version |
| QUOTE (Keyser Soze @ Dec 21 2008, 12:28 AM) | | Thank god I thought I was going to have to PAY for my glitches! |
| QUOTE | | You know what they say toast is toast. ;3 |
|
|
|
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:
Track this topic
Receive email notification when a reply has been made to this topic and you are not active on the board.
Subscribe to this forum
Receive email notification when a new topic is posted in this forum and you are not active on the board.
Download / Print this Topic
Download this topic in different formats or view a printer friendly version.
[ Script Execution time: 0.0893 ] [ 14 queries used ] [ GZIP Enabled ] [ Server Load: 1.51 ]
| |