Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /////waves layered ontop and move independently first one has no transparencey second one goes on top of first and does have transparencey
- let path1 = current ~ "img/background4.png";//has no transparency the bottom layer
- let obj1 = ObjPrim_Create(OBJ_SPRITE_2D);
- Obj_SetRenderPriority(obj1, 0.22);
- ObjPrim_SetTexture(obj1, path1);
- ObjSprite2D_SetSourceRect(obj1, 50, 50, 205, 205);
- ObjSprite2D_SetDestRect(obj1, 0, 0, 384, 448);
- //ObjRender_SetBlendType(obj1, BLEND_ALPHA);
- let path2 = current ~ "img/new_background1.png";//has transparencey 1 above the bottom
- let obj2 = ObjPrim_Create(OBJ_SPRITE_2D);
- Obj_SetRenderPriority(obj2, 0.23);
- ObjPrim_SetTexture(obj2, path2);
- ObjSprite2D_SetSourceRect(obj2, 50, 50, 205, 205);
- ObjSprite2D_SetDestRect(obj2, 0, 0, 384, 448);
- //ObjRender_SetBlendType(obj2, BLEND_ALPHA);
- ////waves
- let hold="hold";
- CreateRenderTarget(hold);//how does this thing even work
- RenderToTextureA1(hold,0.20,0.24,false);
- let path3 = current ~ "img/background1a.png";//floral pattern the flowers them selves are supposed to give way to the next img. will scroll
- let obj3 = ObjPrim_Create(OBJ_SPRITE_2D);
- ObjRender_SetBlendType(obj3, BLEND_ALPHA);
- Obj_SetRenderPriority(obj3, 0.26);
- ObjPrim_SetTexture(obj3, path3);
- //ObjPrim_SetTexture(obj3, hold);
- ObjSprite2D_SetSourceRect(obj3, 63.75, 63.75, 191.25, 191.25);
- ObjSprite2D_SetDestRect(obj3, 0, 0, 384, 448);
- ObjRender_SetBlendType(obj3, BLEND_SUBTRACT);
- //Obj_SetVisible(obj3,false);
- CreateRenderTarget(obj3);//still no clue
- RenderToTextureA1(obj3,0.20,0.23,true);
- let path4 = current ~ "img/background2.png";//supposed to be seen through the flowers
- let obj4 = ObjPrim_Create(OBJ_SPRITE_2D);
- Obj_SetRenderPriority(obj4, 0.25);
- ObjPrim_SetTexture(obj4, path4);
- ObjSprite2D_SetSourceRect(obj4, 0, 0, 255, 255);
- ObjSprite2D_SetDestRect(obj4, 0, 0, 384, 448);
Add Comment
Please, Sign In to add comment